patch-2.2.14 linux/arch/sparc/kernel/sun4m_smp.c
Next file: linux/arch/sparc/kernel/sys_sparc.c
Previous file: linux/arch/sparc/kernel/sun4d_smp.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Tue Jan 4 10:12:12 2000
- Orig file:
v2.2.13/linux/arch/sparc/kernel/sun4m_smp.c
- Orig date:
Tue May 11 08:24:31 1999
diff -u --recursive --new-file v2.2.13/linux/arch/sparc/kernel/sun4m_smp.c linux/arch/sparc/kernel/sun4m_smp.c
@@ -93,6 +93,14 @@
local_flush_cache_all();
local_flush_tlb_all();
+ /*
+ * Unblock the master CPU _only_ when the scheduler state
+ * of all secondary CPUs will be up-to-date, so after
+ * the SMP initialization the master will be just allowed
+ * to call the scheduler code.
+ */
+ init_idle();
+
/* Allow master to continue. */
swap((unsigned long *)&cpu_callin_map[cpuid], 1);
local_flush_cache_all();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)