From: Ingo Molnar Date: Thu, 5 Mar 2009 14:15:44 +0000 (+0100) Subject: x86: UV, SGI RTC: add generic system vector, build fix on UP X-Git-Tag: MMI-PSA29.97-13-9~27984^2~247^2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2b352590d94651579e6914ecdb08d30b2cb5f19;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git x86: UV, SGI RTC: add generic system vector, build fix on UP Make ack_APIC_irq() build on !SMP && !APIC too. Cc: Dimitri Sivanich LKML-Reference: <20090304185605.GA24419@sgi.com> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 4ef949c1972e..394d177d721b 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -379,6 +379,7 @@ static inline u32 safe_apic_wait_icr_idle(void) static inline void ack_APIC_irq(void) { +#ifdef CONFIG_X86_LOCAL_APIC /* * ack_APIC_irq() actually gets compiled as a single instruction * ... yummie. @@ -386,6 +387,7 @@ static inline void ack_APIC_irq(void) /* Docs say use 0 for future compatibility */ apic_write(APIC_EOI, 0); +#endif } static inline unsigned default_get_apic_id(unsigned long x)