Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f45bcd70 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds
Browse files

[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: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5ff5115e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -149,11 +149,11 @@ static inline void io_apic_sync(unsigned int apic)
		reg = io_apic_read(entry->apic, 0x10 + R + pin*2);	\
		reg = io_apic_read(entry->apic, 0x10 + R + pin*2);	\
		reg ACTION;						\
		reg ACTION;						\
		io_apic_modify(entry->apic, reg);			\
		io_apic_modify(entry->apic, reg);			\
		FINAL;							\
		if (!entry->next)					\
		if (!entry->next)					\
			break;						\
			break;						\
		entry = irq_2_pin + entry->next;			\
		entry = irq_2_pin + entry->next;			\
	}								\
	}								\
	FINAL;								\
}
}


union entry_union {
union entry_union {