genirq: Fix irqfixup, irqpoll regression
authorEdward Donovan <[email protected]>
Tue, 1 Nov 2011 19:29:44 +0000 (15:29 -0400)
committerThomas Gleixner <[email protected]>
Thu, 3 Nov 2011 12:12:39 +0000 (13:12 +0100)
commitc75d720fca8a91ce99196d33adea383621027bf2
tree8b5f2605c4bbd61f2cc43f37a163b60d073433cd
parentc3b92c8787367a8bb53d57d9789b558f1295cc96
genirq: Fix irqfixup, irqpoll regression

commit d05c65fff0 ("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 <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected] # >= 2.6.39
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/irq/spurious.c