net/sir_dev: replace
Subsystems (2)
PATCH 31/38 net/sir_dev: 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/sir_dev.c +2 -2
@@ -15,6 +15,7 @@#include <linux/kernel.h> #include <linux/init.h> #include <linux/smp_lock.h> +#include <linux/delay.h> #include <net/irda/irda.h> #include <net/irda/wrapper.h>
@@ -73,8 +74,7 @@ int sirdev_raw_write(struct sir_dev *devspin_lock_irqsave (&dev->tx_lock, flags);/* serialize with other tx operations */ while (dev->tx_buff.len >0 ) {/* wait until tx idle */ spin_unlock_irqrestore (&dev->tx_lock, flags); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (msecs_to_jiffies (10 )); +msleep (10 );spin_lock_irqsave (&dev->tx_lock, flags); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors