patch-2.1.120 linux/init/main.c
Next file: linux/ipc/sem.c
Previous file: linux/include/net/transp_v6.h
Back to the patch index
Back to the overall index
- Lines: 85
- Date:
Wed Sep 2 09:40:06 1998
- Orig file:
v2.1.119/linux/init/main.c
- Orig date:
Wed Aug 26 11:37:44 1998
diff -u --recursive --new-file v2.1.119/linux/init/main.c linux/init/main.c
@@ -1005,6 +1005,8 @@
idle();
}
+#define smp_init() do { } while (0)
+
#else
/*
@@ -1018,20 +1020,10 @@
{
/* Get other processors into their bootup holding patterns. */
smp_boot_cpus();
-}
-
-/*
- * 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 __init smp_begin(void)
-{
smp_threads_ready=1;
smp_commence();
-}
-
+}
+
#endif
extern void initialize_secondary(void);
@@ -1112,13 +1104,10 @@
#if defined(CONFIG_QUOTA)
dquot_init_hash();
#endif
+ check_bugs();
printk("POSIX conformance testing by UNIFIX\n");
-#ifdef __SMP__
smp_init();
-#endif
-
- check_bugs();
#if defined(CONFIG_MTRR) /* Do this after SMP initialization */
/*
@@ -1126,10 +1115,9 @@
* everything is up" style function where this would belong better
* than in init/main.c..
*/
- mtrr_init ();
+ mtrr_init();
#endif
- sock_init();
#ifdef CONFIG_SYSCTL
sysctl_init();
#endif
@@ -1200,6 +1188,9 @@
int real_root_mountflags;
#endif
+ /* Networking initialization needs a process context */
+ sock_init();
+
/* Launch bdflush from here, instead of the old syscall way. */
kernel_thread(bdflush, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
/* Start the background pageout daemon. */
@@ -1221,15 +1212,6 @@
else mount_initrd =0;
#endif
setup(0);
-
-#ifdef __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