x86: UV, SGI RTC: add generic system vector, build fix on UP
authorIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 14:15:44 +0000 (15:15 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 14:15:56 +0000 (15:15 +0100)
Make ack_APIC_irq() build on !SMP && !APIC too.

Cc: Dimitri Sivanich <sivanich@sgi.com>
LKML-Reference: <20090304185605.GA24419@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h

index 4ef949c..394d177 100644 (file)
@@ -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)