Skip to content

Commit

Permalink
[PATCH] s390: cpu up retries
Browse files Browse the repository at this point in the history
Retry starting of new cpu if sigp restart returns condition code 2 (busy).

Signed-off-by: Michael Ryan <ryan@funsoft.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Michael Ryan authored and Linus Torvalds committed Mar 24, 2006
1 parent 4896cef commit 699ff13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,9 @@ __cpu_up(unsigned int cpu)
cpu_lowcore->current_task = (unsigned long) idle;
cpu_lowcore->cpu_data.cpu_nr = cpu;
eieio();
signal_processor(cpu,sigp_restart);

while (signal_processor(cpu,sigp_restart) == sigp_busy)
udelay(10);

while (!cpu_online(cpu))
cpu_relax();
Expand Down

0 comments on commit 699ff13

Please sign in to comment.