patch-2.1.112 linux/init/main.c
Next file: linux/kernel/exit.c
Previous file: linux/include/net/x25.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sun Jul 26 11:54:52 1998
- Orig file:
v2.1.111/linux/init/main.c
- Orig date:
Sun Jul 26 11:57:19 1998
diff -u --recursive --new-file v2.1.111/linux/init/main.c linux/init/main.c
@@ -48,6 +48,10 @@
#include <linux/dio.h>
#endif
+#ifdef CONFIG_MTRR
+# include <asm/mtrr.h>
+#endif
+
/*
* Versions of gcc older than that listed below may actually compile
* and link okay, but the end product can have subtle run time bugs.
@@ -1106,11 +1110,21 @@
#if defined(CONFIG_QUOTA)
dquot_init_hash();
#endif
+ printk("POSIX conformance testing by UNIFIX\n");
+ check_bugs();
+
#ifdef __SMP__
smp_init();
#endif
- printk("POSIX conformance testing by UNIFIX\n");
- check_bugs();
+
+#if defined(CONFIG_MTRR) /* Do this after SMP initialization */
+/*
+ * We should probably create some architecture-dependent "fixup after
+ * everything is up" style function where this would belong better
+ * than in init/main.c..
+ */
+ mtrr_init ();
+#endif
sock_init();
#ifdef CONFIG_SYSCTL
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov