serial/crisv10: replace schedule_timeout() with
PATCH 25/39 serial/crisv10: replace schedule_timeout() with
Hi,
Please consider applying.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected. The current code uses TASK_INTERRUPTIBLE, but does not care about signals, so I believe msleep() should be ok.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/serial/crisv10.c +2 -4
@@ -3757,10 +3757,8 @@ rs_write(struct tty_struct * tty, int fre100_enable_rx_irq (info);#endif -if (info->rs485.delay_rts_before_send >0 ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout ((info->rs485.delay_rts_before_send *HZ )/1000 ); - } +if (info->rs485.delay_rts_before_send >0 ) + msleep(info->rs485.delay_rts_before_send); }#endif /* CONFIG_ETRAX_RS485 */
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors