Browse Source

[PATCH] x86_64: More fixes for compilation without CONFIG_ACPI

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>
Andi Kleen 20 years ago
parent
commit
8d91640606
3 changed files with 4 additions and 0 deletions
  1. 1 0
      arch/x86_64/kernel/io_apic.c
  2. 1 0
      arch/x86_64/kernel/mpparse.c
  3. 2 0
      arch/x86_64/kernel/time.c

+ 1 - 0
arch/x86_64/kernel/io_apic.c

@@ -37,6 +37,7 @@
 #include <asm/desc.h>
 #include <asm/proto.h>
 #include <asm/mach_apic.h>
+#include <asm/acpi.h>
 
 #define __apicdebuginit  __init
 

+ 1 - 0
arch/x86_64/kernel/mpparse.c

@@ -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;

+ 2 - 0
arch/x86_64/kernel/time.c

@@ -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>