aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-04-18 16:25:25 +0300
committerMichael S. Tsirkin <mst@redhat.com>2012-05-02 17:51:51 +0300
commit0dc679225e79aec1a541d5ac0fa955b889d36b25 (patch)
treed58c270b1406442c9c73550efe00465ba5e00120
parentad56aa1177d64c354708c984ba11f230653eb5bb (diff)
downloadvhost-0dc679225e79aec1a541d5ac0fa955b889d36b25.tar.gz
apic: fix typo EIO_ACK -> EOI_ACK and document
Fix typo in the macro name and document the reason it has this value. Update users. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--arch/x86/include/asm/apicdef.h2
-rw-r--r--arch/x86/platform/visws/visws_quirks.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/apicdef.h b/arch/x86/include/asm/apicdef.h
index 134bba00df09db..c46bb99d5fb29f 100644
--- a/arch/x86/include/asm/apicdef.h
+++ b/arch/x86/include/asm/apicdef.h
@@ -37,7 +37,7 @@
#define APIC_ARBPRI_MASK 0xFFu
#define APIC_PROCPRI 0xA0
#define APIC_EOI 0xB0
-#define APIC_EIO_ACK 0x0
+#define APIC_EOI_ACK 0x0 /* Docs say 0 for future compat. */
#define APIC_RRR 0xC0
#define APIC_LDR 0xD0
#define APIC_LDR_MASK (0xFFu << 24)
diff --git a/arch/x86/platform/visws/visws_quirks.c b/arch/x86/platform/visws/visws_quirks.c
index c7abf13a213ffb..94d8a39332ec84 100644
--- a/arch/x86/platform/visws/visws_quirks.c
+++ b/arch/x86/platform/visws/visws_quirks.c
@@ -445,7 +445,7 @@ static void ack_cobalt_irq(struct irq_data *data)
spin_lock_irqsave(&cobalt_lock, flags);
disable_cobalt_irq(data);
- apic_write(APIC_EOI, APIC_EIO_ACK);
+ apic_write(APIC_EOI, APIC_EOI_ACK);
spin_unlock_irqrestore(&cobalt_lock, flags);
}