aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-05-16 12:03:44 -0400
committerIngo Molnar <mingo@kernel.org>2012-05-18 03:46:08 -0400
commit4ebcc243901c48ee3baba6bdf179c7315fa8806f (patch)
treeb6e7ef8617a6b3362d1eb487c60422849076494c /arch/x86/include/asm/apic.h
parentc8f64bf7df9e4858c051b6c1c09582359b97677d (diff)
x86/apic: Use symbolic APIC_EOI_ACK
Use the symbol instead of hard-coded numbers, now that the reason for the value is documented where the constant is defined we don't need to duplicate this explanation in code. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Cc: Avi Kivity <avi@redhat.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: gleb@redhat.com Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/ecbe4c79d69c172378e47e5a587ff5cd10293c9f.1337184153.git.mst@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r--arch/x86/include/asm/apic.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index d85410171260..a09e9ab0bbdf 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -463,9 +463,7 @@ static inline void ack_APIC_irq(void)
463 * ack_APIC_irq() actually gets compiled as a single instruction 463 * ack_APIC_irq() actually gets compiled as a single instruction
464 * ... yummie. 464 * ... yummie.
465 */ 465 */
466 466 apic_write(APIC_EOI, APIC_EOI_ACK);
467 /* Docs say use 0 for future compatibility */
468 apic_write(APIC_EOI, 0);
469} 467}
470 468
471static inline unsigned default_get_apic_id(unsigned long x) 469static inline unsigned default_get_apic_id(unsigned long x)