[PATCH] x86_64: More fixes for compilation without CONFIG_ACPI
authorAndi Kleen <ak@suse.de>
Tue, 31 May 2005 21:39:26 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 31 May 2005 21:54:17 +0000 (14:54 -0700)
Suggested by Alexander Nyberg

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/io_apic.c
arch/x86_64/kernel/mpparse.c
arch/x86_64/kernel/time.c

index 80e9b498c44343b4683e3cc0d79e4f2b42e8f727..afd87e64d0a870c43eaab0a6a99882c9d1c12281 100644 (file)
@@ -37,6 +37,7 @@
 #include <asm/desc.h>
 #include <asm/proto.h>
 #include <asm/mach_apic.h>
+#include <asm/acpi.h>
 
 #define __apicdebuginit  __init
 
index f86d9db94bfcc437b378fc32024d603c449cfdf1..61a63be6b294adf3f0716ad8bcd27c13b7028c36 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/pgalloc.h>
 #include <asm/io_apic.h>
 #include <asm/proto.h>
+#include <asm/acpi.h>
 
 /* Have we found an MP table */
 int smp_found_config;
index 735b6767c8ed78eda64acda6cba265cbfc8df44e..fb8c809b4cd94fb817b7d04b6db140423e80cf30 100644 (file)
@@ -27,7 +27,9 @@
 #include <linux/bcd.h>
 #include <linux/kallsyms.h>
 #include <linux/acpi.h>
+#ifdef CONFIG_ACPI
 #include <acpi/achware.h>      /* for PM timer frequency */
+#endif
 #include <asm/8253pit.h>
 #include <asm/pgtable.h>
 #include <asm/vsyscall.h>