diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-07-28 21:15:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-28 21:46:02 -0700 |
commit | ef6e525393dbbab7e1dc42594d35a1dfd688d1d7 (patch) | |
tree | 31dff5c27707f7c095cbc6cd9157ac2fa62d487f /arch | |
parent | 8d224d32c28c165f7100a670d61d64dd15d49a1e (diff) | |
download | blackbird-op-linux-ef6e525393dbbab7e1dc42594d35a1dfd688d1d7.tar.gz blackbird-op-linux-ef6e525393dbbab7e1dc42594d35a1dfd688d1d7.zip |
[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 <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/kernel/smpboot.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |