tc/zs: replace
Subsystems (2)
PATCH 1/1 tc/zs: replace
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/tc/zs.c +2 -4
@@ -1410,8 +1410,7 @@ static void rs_close(struct tty_struct * info->tty =0 ;if (info->blocked_open) {if (info->close_delay) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (info->close_delay); +msleep_interruptible (jiffies_to_msecs (info->close_delay)); }wake_up_interruptible (&info->open_wait); }
@@ -1444,8 +1443,7 @@ static void rs_wait_until_sent(struct ttif (timeout) char_time = min_t(unsigned long, char_time, timeout);while ((read_zsreg (info->zs_channel,1 ) & Tx_BUF_EMP) ==0 ) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (char_time); +msleep_interruptible (jiffies_to_msecs (char_time));if (signal_pending (current))break ;if (timeout &&time_after (jiffies, orig_jiffies + timeout))
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors