Skip to contentSkip to conversation

x86_64/smpboot: use msleep() instead of

PATCH Applied Nishanth Aravamudan 1 participant 1 message Jul 9, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 5/14 x86_64/smpboot: use msleep() instead of

From: Nishanth Aravamudan <[email protected]>

Description: Replace schedule_timeout() with msleep() to guarantee the task delays as expected.

---

 smpboot.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
arch/x86_64/kernel/smpboot.c +1 -2
diff -urpN 2.6.13-rc2-kj/arch/x86_64/kernel/smpboot.c 2.6.13-rc2-kj-dev/arch/x86_64/kernel/smpboot.c
@@ -1189,8 +1189,7 @@ void __cpu_die(unsigned int cpu)
 			printk ("CPU %d is now offline\n", cpu);
 			return;
 		}
-		current->state = TASK_UNINTERRUPTIBLE;
-		schedule_timeout(HZ/10);
+		msleep(100);
 	}
  	printk(KERN_ERR "CPU %u didn't die...\n", cpu);
 }

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors