]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix missing/delayed calls to irq_work
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 15 Jun 2013 02:13:40 +0000 (12:13 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 15 Jun 2013 02:33:30 +0000 (12:33 +1000)
commitdbdc435d79c13813b5257fb3d37b8ffa7e5e3757
treec93994c7ebf1ca231b79e10e14d4230f8d6b3486
parentffab76296d130309fffdf2983cce52a7d367ccba
powerpc: Fix missing/delayed calls to irq_work

When replaying interrupts (as a result of the interrupt occurring
while soft-disabled), in the case of the decrementer, we are exclusively
testing for a pending timer target. However we also use decrementer
interrupts to trigger the new "irq_work", which in this case would
be missed.

This change the logic to force a replay in both cases of a timer
boundary reached and a decrementer interrupt having actually occurred
while disabled. The former test is still useful to catch cases where
a CPU having been hard-disabled for a long time completely misses the
interrupt due to a decrementer rollover.

CC: <stable@vger.kernel.org> [v3.4+]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Steven Rostedt <rostedt@goodmis.org>
arch/powerpc/kernel/irq.c