patch-2.1.115 linux/init/main.c

Next file: linux/ipc/shm.c
Previous file: linux/include/linux/tty_driver.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/init/main.c linux/init/main.c
@@ -359,19 +359,13 @@
 	return(cur);
 }
 
-#ifdef CONFIG_PROFILE
-__initfunc(static void profile_setup(char *str, int *ints))
+static void __init profile_setup(char *str, int *ints)
 {
 	if (ints[0] > 0)
 		prof_shift = (unsigned long) ints[1];
 	else
-#ifdef CONFIG_PROFILE_SHIFT
-		prof_shift = CONFIG_PROFILE_SHIFT;
-#else
 		prof_shift = 2;
-#endif
 }
-#endif
 
 
 static struct dev_name_struct {
@@ -518,9 +512,7 @@
 #else
 	{ "reserve=", pnp_reserve_setup },
 #endif
-#ifdef CONFIG_PROFILE
 	{ "profile=", profile_setup },
-#endif
 #ifdef __SMP__
 	{ "nosmp", smp_setup },
 	{ "maxcpus=", smp_setup },
@@ -1082,7 +1074,6 @@
 #ifdef CONFIG_MODULES
 	init_modules();
 #endif
-#ifdef CONFIG_PROFILE
 	if (prof_shift) {
 		prof_buffer = (unsigned int *) memory_start;
 		/* only text is profiled */
@@ -1091,7 +1082,6 @@
 		memory_start += prof_len * sizeof(unsigned int);
 		memset(prof_buffer, 0, prof_len * sizeof(unsigned int));
 	}
-#endif
 
 	memory_start = kmem_cache_init(memory_start, memory_end);
 	sti();
@@ -1123,11 +1113,12 @@
 	dquot_init_hash();
 #endif
 	printk("POSIX conformance testing by UNIFIX\n");
-	check_bugs();
 
 #ifdef __SMP__
 	smp_init();
 #endif
+
+	check_bugs();
 
 #if defined(CONFIG_MTRR)	/* Do this after SMP initialization */
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov