aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-02-16 04:27:54 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-16 11:13:58 -0500
commit3434933b17fa64adddf83059603c61296f6e1ee2 (patch)
treee561f03035054eba42c521ce154e9948f744f8c7 /drivers/acpi/processor_idle.c
parentdd3629b5e5f03dde6d8a17bb798bcb0ba6c3f579 (diff)
[PATCH] ACPI: fix missing include for UP
apic.h does not get included on UP compiles. That way the APICTIMER_STOPS_ON_C3 is not there and UP boxen have no support for timer broadcasting. This was never noticed, because the lapic timer is only used for profiling on UP. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: john stultz <johnstul@us.ibm.com> Cc: Len Brown <len.brown@intel.com> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 6c6751b1405b..e34af7772a66 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -40,6 +40,16 @@
40#include <linux/sched.h> /* need_resched() */ 40#include <linux/sched.h> /* need_resched() */
41#include <linux/latency.h> 41#include <linux/latency.h>
42 42
43/*
44 * Include the apic definitions for x86 to have the APIC timer related defines
45 * available also for UP (on SMP it gets magically included via linux/smp.h).
46 * asm/acpi.h is not an option, as it would require more include magic. Also
47 * creating an empty asm-ia64/apic.h would just trade pest vs. cholera.
48 */
49#ifdef CONFIG_X86
50#include <asm/apic.h>
51#endif
52
43#include <asm/io.h> 53#include <asm/io.h>
44#include <asm/uaccess.h> 54#include <asm/uaccess.h>
45 55