aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-23 06:23:52 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 13:34:08 -0500
commitf45bcd7022a46de48cc414e3ea3a5b9b4de318ec (patch)
tree704cc343d90c9325d3dca824853d870c7bc0d5ff /arch
parent5ff5115efafb08b49cbc8abdea9726884fba0b5a (diff)
[PATCH] x86_64 irq: In __DO_ACTION perform the FINAL action for every entry.
If we have an irq that comes from multiple io_apic pins the FINAL action (which is io_apic_sync or nothing) needs to be called for every entry or else if the two pins come from different io_apics we may not wait until after the action happens on the io_apic. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/io_apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index 74671defbbe3..52fc19ba2b98 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -149,11 +149,11 @@ static inline void io_apic_sync(unsigned int apic)
149 reg = io_apic_read(entry->apic, 0x10 + R + pin*2); \ 149 reg = io_apic_read(entry->apic, 0x10 + R + pin*2); \
150 reg ACTION; \ 150 reg ACTION; \
151 io_apic_modify(entry->apic, reg); \ 151 io_apic_modify(entry->apic, reg); \
152 FINAL; \
152 if (!entry->next) \ 153 if (!entry->next) \
153 break; \ 154 break; \
154 entry = irq_2_pin + entry->next; \ 155 entry = irq_2_pin + entry->next; \
155 } \ 156 } \
156 FINAL; \
157} 157}
158 158
159union entry_union { 159union entry_union {