aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkanoj <kanoj>2001-12-26 23:39:04 +0000
committerkanoj <kanoj>2001-12-26 23:39:04 +0000
commit55c7c5561db494a5048a532203d1bf4200bec869 (patch)
tree031e7835bc1271776a3db343c89a661008d2f738
parent3ffc1620675cfd960399871aae77f596cfbde71b (diff)
downloadnetdev-vger-cvs-55c7c5561db494a5048a532203d1bf4200bec869.tar.gz
Forward port 2.4 fix: Fix SMP race during bootup. The slaves should
not be allowed to do cpu_idle() and clear their masks by calling init_idle() before the master has a chance to set up wait_init_idle properly.
-rw-r--r--arch/sparc64/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index 6ac61ab80..a8f2a0994 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -218,7 +218,7 @@ void __init smp_callin(void)
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;
- while (!smp_processors_ready)
+ while (!smp_threads_ready)
membar("#LoadLoad");
}