|
@@ -943,7 +943,7 @@ static int block_til_ready(struct tty_struct *tty, struct file *filp,
|
|
#endif
|
|
#endif
|
|
schedule(); /* Don't hold spinlock here, will hang PC */
|
|
schedule(); /* Don't hold spinlock here, will hang PC */
|
|
}
|
|
}
|
|
- current->state = TASK_RUNNING;
|
|
|
|
|
|
+ __set_current_state(TASK_RUNNING);
|
|
remove_wait_queue(&info->open_wait, &wait);
|
|
remove_wait_queue(&info->open_wait, &wait);
|
|
|
|
|
|
spin_lock_irqsave(&info->slock, flags);
|
|
spin_lock_irqsave(&info->slock, flags);
|
|
@@ -1598,7 +1598,7 @@ static void rp_wait_until_sent(struct tty_struct *tty, int timeout)
|
|
if (signal_pending(current))
|
|
if (signal_pending(current))
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- current->state = TASK_RUNNING;
|
|
|
|
|
|
+ __set_current_state(TASK_RUNNING);
|
|
#ifdef ROCKET_DEBUG_WAIT_UNTIL_SENT
|
|
#ifdef ROCKET_DEBUG_WAIT_UNTIL_SENT
|
|
printk(KERN_INFO "txcnt = %d (jiff=%lu)...done\n", txcnt, jiffies);
|
|
printk(KERN_INFO "txcnt = %d (jiff=%lu)...done\n", txcnt, jiffies);
|
|
#endif
|
|
#endif
|