summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/smpboot.c
diff options
context:
space:
mode:
authorNishanth Aravamudan2005-09-10 09:26:50 +0200
committerLinus Torvalds2005-09-10 19:06:29 +0200
commitaeb8397b6a289a358f04fa12b69194af6c259ad6 (patch)
tree42023b8d3f55a7ee9ac35b9866d6cdfbbb356d0a /arch/i386/kernel/smpboot.c
parent[PATCH] telephony/ixj: use msleep() instead of schedule_timeout() (diff)
downloadkernel-qcow2-linux-aeb8397b6a289a358f04fa12b69194af6c259ad6.tar.gz
kernel-qcow2-linux-aeb8397b6a289a358f04fa12b69194af6c259ad6.tar.xz
kernel-qcow2-linux-aeb8397b6a289a358f04fa12b69194af6c259ad6.zip
[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 <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/smpboot.c')
-rw-r--r--arch/i386/kernel/smpboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c
index 5e4893d2b9f2..c70cd2a08304 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);
}