aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-04-18 22:42:39 +0300
committerMichael S. Tsirkin <mst@redhat.com>2012-05-02 17:51:52 +0300
commit41d8836edad8e897c537504213e391c96c8c9e24 (patch)
tree2c230cceb6c85aec44bbde971ea14f2a0286188e
parent0dc679225e79aec1a541d5ac0fa955b889d36b25 (diff)
downloadvhost-41d8836edad8e897c537504213e391c96c8c9e24.tar.gz
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>
-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 d8541017126086..a09e9ab0bbdfb1 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)
* ack_APIC_irq() actually gets compiled as a single instruction
* ... yummie.
*/
-
- /* Docs say use 0 for future compatibility */
- apic_write(APIC_EOI, 0);
+ apic_write(APIC_EOI, APIC_EOI_ACK);
}
static inline unsigned default_get_apic_id(unsigned long x)