patch-2.3.43 linux/init/main.c

Next file: linux/ipc/util.h
Previous file: linux/include/video/macmodes.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/init/main.c linux/init/main.c
@@ -20,6 +20,7 @@
 #include <linux/utsname.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
+#include <linux/raid/md.h>
 #include <linux/smp_lock.h>
 #include <linux/blk.h>
 #include <linux/hdreg.h>
@@ -45,10 +46,6 @@
 #  include <asm/mtrr.h>
 #endif
 
-#ifdef CONFIG_APM
-#include <linux/apm_bios.h>
-#endif
-
 #ifdef CONFIG_MAC
 extern void nubus_init(void);
 #endif
@@ -114,6 +111,7 @@
 #define MAX_INIT_ENVS 8
 
 extern void time_init(void);
+extern void softirq_init(void);
 
 int rows, cols;
 
@@ -472,6 +470,7 @@
 	init_IRQ();
 	sched_init();
 	time_init();
+	softirq_init();
 	parse_options(command_line);
 
 	/*
@@ -685,6 +684,9 @@
 			while (pid != wait(&i));
 		if (MAJOR(real_root_dev) != RAMDISK_MAJOR
 		     || MINOR(real_root_dev) != 0) {
+#ifdef CONFIG_BLK_DEV_MD
+			autodetect_raid();
+#endif
 			error = change_root(real_root_dev,"/initrd");
 			if (error)
 				printk(KERN_ERR "Change root to /initrd: "

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