diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-05 09:15:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-05 09:15:56 -0500 |
commit | b2b352590d94651579e6914ecdb08d30b2cb5f19 (patch) | |
tree | d325fc379917c1368c9963ac9fc8eaa7b666b0aa | |
parent | 1400b3faab8fedfffde5a7fe47098e2732d4aa76 (diff) |
x86: UV, SGI RTC: add generic system vector, build fix on UP
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>
-rw-r--r-- | arch/x86/include/asm/apic.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
379 | 379 | ||
380 | static inline void ack_APIC_irq(void) | 380 | static inline void ack_APIC_irq(void) |
381 | { | 381 | { |
382 | #ifdef CONFIG_X86_LOCAL_APIC | ||
382 | /* | 383 | /* |
383 | * ack_APIC_irq() actually gets compiled as a single instruction | 384 | * ack_APIC_irq() actually gets compiled as a single instruction |
384 | * ... yummie. | 385 | * ... yummie. |
@@ -386,6 +387,7 @@ static inline void ack_APIC_irq(void) | |||
386 | 387 | ||
387 | /* Docs say use 0 for future compatibility */ | 388 | /* Docs say use 0 for future compatibility */ |
388 | apic_write(APIC_EOI, 0); | 389 | apic_write(APIC_EOI, 0); |
390 | #endif | ||
389 | } | 391 | } |
390 | 392 | ||
391 | static inline unsigned default_get_apic_id(unsigned long x) | 393 | static inline unsigned default_get_apic_id(unsigned long x) |