kernel/softlockup: fix usage of msleep_interruptible()
PATCH 1/1 kernel/softlockup: fix usage of msleep_interruptible()
Description: Jiffies are incorrectly being passed into msleep_interruptible(), which expects milliseconds. Also, the state does not need to be set before calling msleep_interruptible(), as it will take care of it.
Signed-off-by Nishanth Aravamudan <[email protected]>
kernel/softlockup.c +1 -2
@@ -69,8 +69,7 @@ static int watchdog(void * __bind_cpu)* in softlockup_tick(): */ while (!kthread_should_stop ()) { -set_current_state (TASK_INTERRUPTIBLE ); -msleep_interruptible (HZ ); +msleep_interruptible (1000 );touch_softlockup_watchdog (); }__set_current_state (TASK_RUNNING );
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors