PATCH: fix non SMP acpi build

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Feb 14 2003 - 16:02:23 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/include/asm-i386/mach-default/mach_apic.h linux-2.5.60-ac1/include/asm-i386/mach-default/mach_apic.h
--- linux-2.5.60-ref/include/asm-i386/mach-default/mach_apic.h 2003-02-14 21:21:46.000000000 +0000
+++ linux-2.5.60-ac1/include/asm-i386/mach-default/mach_apic.h 2003-02-14 18:12:47.000000000 +0000
@@ -1,6 +1,8 @@
 #ifndef __ASM_MACH_APIC_H
 #define __ASM_MACH_APIC_H
 
+#ifdef CONFIG_LOCAL_APIC
+
 #define APIC_DFR_VALUE (APIC_DFR_FLAT)
 
 #ifdef CONFIG_SMP
@@ -98,4 +100,6 @@
         return test_bit(boot_cpu_physical_apicid, &phys_cpu_present_map);
 }
 
+#endif
+
 #endif /* __ASM_MACH_APIC_H */
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/arch/i386/kernel/acpi/boot.c linux-2.5.60-ac1/arch/i386/kernel/acpi/boot.c
--- linux-2.5.60-ref/arch/i386/kernel/acpi/boot.c 2003-02-14 21:45:55.000000000 +0000
+++ linux-2.5.60-ac1/arch/i386/kernel/acpi/boot.c 2003-02-14 18:14:04.000000000 +0000
@@ -26,6 +26,7 @@
 #include <linux/init.h>
 #include <linux/acpi.h>
 #include <asm/pgalloc.h>
+#include <asm/mpspec.h>
 
 #include <mach_apic.h>
 #include <mach_mpparse.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:58 EST