irda/irtty-sir: replace
Subsystems (2)
PATCH 1/1 irda/irtty-sir: replace
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Replace schedule_timeout() with msleep() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/net/irda/irtty-sir.c +3 -4
@@ -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>
@@ -96,10 +97,8 @@ static void irtty_wait_until_sent(struct tty->driver->wait_until_sent (tty,msecs_to_jiffies (100 ));unlock_kernel (); } -else { -set_task_state (current,TASK_UNINTERRUPTIBLE ); -schedule_timeout (msecs_to_jiffies (USBSERIAL_TX_DONE_DELAY )); - } +else +msleep (USBSERIAL_TX_DONE_DELAY ); }/*
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors