diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-07-29 00:15:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-29 00:46:02 -0400 |
commit | ef6e525393dbbab7e1dc42594d35a1dfd688d1d7 (patch) | |
tree | 31dff5c27707f7c095cbc6cd9157ac2fa62d487f /arch/x86_64 | |
parent | 8d224d32c28c165f7100a670d61d64dd15d49a1e (diff) |
[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/x86_64')
-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) | |||
1183 | printk ("CPU %d is now offline\n", cpu); | 1183 | printk ("CPU %d is now offline\n", cpu); |
1184 | return; | 1184 | return; |
1185 | } | 1185 | } |
1186 | current->state = TASK_UNINTERRUPTIBLE; | 1186 | msleep(100); |
1187 | schedule_timeout(HZ/10); | ||
1188 | } | 1187 | } |
1189 | printk(KERN_ERR "CPU %u didn't die...\n", cpu); | 1188 | printk(KERN_ERR "CPU %u didn't die...\n", cpu); |
1190 | } | 1189 | } |