From: Nishanth Aravamudan Subject: [KJ] [PATCH 5/14] x86_64/smpboot: use msleep() instead of schedule_timeout() From: Nishanth Aravamudan Replace schedule_timeout() with msleep() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan --- smpboot.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: quilt/arch/x86_64/kernel/smpboot.c =================================================================== --- quilt.orig/arch/x86_64/kernel/smpboot.c +++ quilt/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); }