Skip to content

Commit c75d720

Browse files
Edward DonovanKAGA-KOKO
authored andcommitted
genirq: Fix irqfixup, irqpoll regression
commit d05c65f ("genirq: spurious: Run only one poller at a time") introduced a regression, leaving the boot options 'irqfixup' and 'irqpoll' non-functional. The patch placed tests in each function, to exit if the function is already running. The test in 'misrouted_irq' exited when it should have proceeded, effectively disabling 'misrouted_irq' and 'poll_spurious_irqs'. The check for an already running poller needs to be "!= 1" not "== 1" as "1" is the value when the first poller starts running. Signed-off-by: Edward Donovan <edward.donovan@numble.net> Cc: maciej.rutecki@gmail.com Link: http://lkml.kernel.org/r/1320175784-6745-1-git-send-email-edward.donovan@numble.net Cc: stable@vger.kernel.org # >= 2.6.39 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent c3b92c8 commit c75d720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/irq/spurious.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int misrouted_irq(int irq)
115115
struct irq_desc *desc;
116116
int i, ok = 0;
117117

118-
if (atomic_inc_return(&irq_poll_active) == 1)
118+
if (atomic_inc_return(&irq_poll_active) != 1)
119119
goto out;
120120

121121
irq_poll_cpu = smp_processor_id();

0 commit comments

Comments
 (0)