net/irtty-sir: replace
Subsystems (2)
PATCH 16/38 net/irtty-sir: replace
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/net/irda/irtty-sir.c +2 -2
@@ -32,6 +32,7 @@#include <linux/init.h> #include <asm/uaccess.h> #include <linux/smp_lock.h> +#include <linux/delay.h> #include <net/irda/irda.h> #include <net/irda/irda_device.h>
@@ -97,8 +98,7 @@ static void irtty_wait_until_sent(structunlock_kernel (); }else { -set_task_state (current,TASK_UNINTERRUPTIBLE ); -schedule_timeout (msecs_to_jiffies (USBSERIAL_TX_DONE_DELAY )); +msleep (USBSERIAL_TX_DONE_DELAY ); } }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors