patch-2.3.40 linux/init/main.c

Next file: linux/ipc/msg.c
Previous file: linux/include/pcmcia/version.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/init/main.c linux/init/main.c
@@ -61,6 +61,10 @@
 #include <net/irda/irda_device.h>
 #endif
 
+#ifdef CONFIG_X86_IO_APIC
+#include <asm/smp.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.
@@ -426,7 +430,14 @@
 
 #ifndef __SMP__
 
+#ifdef CONFIG_X86_IO_APIC
+static void __init smp_init(void)
+{
+	IO_APIC_init_uniprocessor();
+}
+#else
 #define smp_init()	do { } while (0)
+#endif
 
 #else
 

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