patch-1.3.38 linux/init/main.c

Next file: linux/init/version.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/init/main.c linux/init/main.c
@@ -116,7 +116,7 @@
 int rows, cols;
 
 int ramdisk_size;
-int root_mountflags = 0;
+int root_mountflags = MS_RDONLY;
 
 static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
 static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
@@ -297,7 +297,7 @@
 	int ticks;
 	int loopbit;
 	int lps_precision = LPS_PREC;
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	loops_per_sec = (1<<12);
 #endif		
 
@@ -418,7 +418,7 @@
 
 extern void setup_arch(char **, unsigned long *, unsigned long *);
 
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 /*
  *	Activate a secondary processor.
  */
@@ -488,7 +488,7 @@
  *	This little check will move.
  */
 
-#ifdef CONFIG_SMP	
+#ifdef __SMP__
 	static int first_cpu=1;
 	
 	if(!first_cpu)
@@ -545,7 +545,7 @@
 	check_bugs();
 
 	printk(linux_banner);
-#ifdef CONFIG_SMP	
+#ifdef __SMP__
 	smp_init();
 #endif
 	/* we count on the initial thread going ok */
@@ -598,7 +598,7 @@
 
 	setup();
 
-#ifdef CONFIG_SMP	
+#ifdef __SMP__
 	/*
 	 *	With the devices probed and setup we can
 	 *	now enter SMP mode.

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