diff options
author | Edward Donovan <edward.donovan@numble.net> | 2011-11-01 15:29:44 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-11-03 08:12:39 -0400 |
commit | c75d720fca8a91ce99196d33adea383621027bf2 (patch) | |
tree | 8b5f2605c4bbd61f2cc43f37a163b60d073433cd /kernel | |
parent | c3b92c8787367a8bb53d57d9789b558f1295cc96 (diff) |
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 <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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/spurious.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index aa57d5da18c1..b5f4742693c0 100644 --- a/kernel/irq/spurious.c +++ b/kernel/irq/spurious.c | |||
@@ -115,7 +115,7 @@ static int misrouted_irq(int irq) | |||
115 | struct irq_desc *desc; | 115 | struct irq_desc *desc; |
116 | int i, ok = 0; | 116 | int i, ok = 0; |
117 | 117 | ||
118 | if (atomic_inc_return(&irq_poll_active) == 1) | 118 | if (atomic_inc_return(&irq_poll_active) != 1) |
119 | goto out; | 119 | goto out; |
120 | 120 | ||
121 | irq_poll_cpu = smp_processor_id(); | 121 | irq_poll_cpu = smp_processor_id(); |