patch-2.3.22 linux/init/main.c

Next file: linux/kernel/ksyms.c
Previous file: linux/include/linux/wanrouter.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/init/main.c linux/init/main.c
@@ -632,15 +632,14 @@
 	/* Networking initialization needs a process context */ 
 	sock_init();
 
-	do_initcalls();
-
 #ifdef CONFIG_BLK_DEV_INITRD
-
 	real_root_dev = ROOT_DEV;
 	real_root_mountflags = root_mountflags;
 	if (initrd_start && mount_initrd) root_mountflags &= ~MS_RDONLY;
 	else mount_initrd =0;
 #endif
+
+	do_initcalls();
 
 	/* .. filesystems .. */
 	filesystem_setup();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)