patch-1.3.36 linux/init/main.c
Next file: linux/kernel/ksyms.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Tue Oct 17 13:42:36 1995
- Orig file:
v1.3.35/linux/init/main.c
- Orig date:
Fri Oct 13 14:44:45 1995
diff -u --recursive --new-file v1.3.35/linux/init/main.c linux/init/main.c
@@ -460,9 +460,19 @@
current_set[i]=task[i];
current_set[i]->processor=i;
}
+}
+
+/*
+ * The autoprobe routines assume CPU#0 on the i386
+ * so we don't actually set the game in motion until
+ * they are finished.
+ */
+
+static void smp_begin(void)
+{
smp_threads_ready=1;
smp_commence();
-}
+}
#endif
@@ -587,6 +597,15 @@
int pid,i;
setup();
+
+#ifdef CONFIG_SMP
+ /*
+ * With the devices probed and setup we can
+ * now enter SMP mode.
+ */
+
+ smp_begin();
+#endif
#ifdef CONFIG_UMSDOS_FS
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this