Skip to content

Commit

Permalink
x86: fix ACPI compile for LOCAL_APIC=n
Browse files Browse the repository at this point in the history
ACPI processor idle code references local_apic_timer_c2_ok, which
is not available when LOCAL_APIC is disabled.

Define local_apic_timer_c2_ok as a constant, when LOCAL_APIC=n

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Nov 26, 2007
1 parent 57c351d commit aafab10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-x86/apic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ extern int local_apic_timer_disabled;

#else /* !CONFIG_X86_LOCAL_APIC */
static inline void lapic_shutdown(void) { }
#define local_apic_timer_c2_ok 1

#endif /* !CONFIG_X86_LOCAL_APIC */

Expand Down

0 comments on commit aafab10

Please sign in to comment.