Commit e368f020 authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds

[PATCH] ppc64: replace schedule_timeout in __cpu_up

This patch is from Nishanth Aravamudan <nacc@us.ibm.com>.

Replace schedule_timeout() with msleep to simplify the code and to express the
delay in milliseconds instead of HZ.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 286e4f74
...@@ -459,8 +459,7 @@ int __devinit __cpu_up(unsigned int cpu) ...@@ -459,8 +459,7 @@ int __devinit __cpu_up(unsigned int cpu)
* hotplug case. Wait five seconds. * hotplug case. Wait five seconds.
*/ */
for (c = 25; c && !cpu_callin_map[cpu]; c--) { for (c = 25; c && !cpu_callin_map[cpu]; c--) {
set_current_state(TASK_UNINTERRUPTIBLE); msleep(200);
schedule_timeout(HZ/5);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment