From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:26:50 +0000 (-0700) Subject: [PATCH] i386/smpboot: use msleep() instead of schedule_timeout() X-Git-Tag: v2.6.14-rc1~188 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aeb8397b6a289a358f04fa12b69194af6c259ad6;p=linux-2.6-omap-h63xx.git [PATCH] i386/smpboot: use msleep() instead of schedule_timeout() Replace schedule_timeout() with msleep() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index 5e4893d2b9f..c70cd2a0830 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c @@ -1330,8 +1330,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); }