From: Nishanth Aravamudan Date: Fri, 29 Jul 2005 04:15:53 +0000 (-0700) Subject: [PATCH] x86_64: Use msleep in smpboot.c X-Git-Tag: Ubuntu-5.2.0-15.16~57865 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ef6e525393dbbab7e1dc42594d35a1dfd688d1d7;p=mirror_ubuntu-eoan-kernel.git [PATCH] x86_64: Use msleep in smpboot.c 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: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c index 001c2d572485..6d23354443c0 100644 --- a/arch/x86_64/kernel/smpboot.c +++ b/arch/x86_64/kernel/smpboot.c @@ -1183,8 +1183,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); }