diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-09-10 03:26:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:29 -0400 |
commit | aeb8397b6a289a358f04fa12b69194af6c259ad6 (patch) | |
tree | 42023b8d3f55a7ee9ac35b9866d6cdfbbb356d0a /arch/i386 | |
parent | f4c9925ccc185da68c2d42230711d017f222e420 (diff) |
[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')
-rw-r--r-- | arch/i386/kernel/smpboot.c | 3 |
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) | |||
1330 | printk ("CPU %d is now offline\n", cpu); | 1330 | printk ("CPU %d is now offline\n", cpu); |
1331 | return; | 1331 | return; |
1332 | } | 1332 | } |
1333 | current->state = TASK_UNINTERRUPTIBLE; | 1333 | msleep(100); |
1334 | schedule_timeout(HZ/10); | ||
1335 | } | 1334 | } |
1336 | printk(KERN_ERR "CPU %u didn't die...\n", cpu); | 1335 | printk(KERN_ERR "CPU %u didn't die...\n", cpu); |
1337 | } | 1336 | } |