projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4c9925
)
[PATCH] i386/smpboot: use msleep() instead of schedule_timeout()
author
Nishanth Aravamudan
<nacc@us.ibm.com>
Sat, 10 Sep 2005 07:26:50 +0000
(
00:26
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 10 Sep 2005 17:06:29 +0000
(10:06 -0700)
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>
arch/i386/kernel/smpboot.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/smpboot.c
b/arch/i386/kernel/smpboot.c
index
5e4893d
..
c70cd2a
100644
(file)
--- 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);
}