Skip to contentSkip to conversation

kernel/softlockup: fix usage of msleep_interruptible()

PATCH New Nishanth Aravamudan 1 participant 1 message Apr 6, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

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.

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