diff options
author | Michael Ryan <ryan@funsoft.com> | 2006-03-24 12:15:17 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 16:33:16 +0100 |
commit | 699ff13f10b75ea929eea6f6fe47ba9cc8f92ca2 (patch) | |
tree | be9ae1f4d5483b9f6887ab67a2bf27b3d34834d7 | |
parent | [PATCH] s390: BUG() warnings (diff) | |
download | linux-699ff13f10b75ea929eea6f6fe47ba9cc8f92ca2.tar.xz linux-699ff13f10b75ea929eea6f6fe47ba9cc8f92ca2.zip |
[PATCH] s390: cpu up retries
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>
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index d52d6d211d9f..2b8841f85534 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c @@ -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(); |