linux/kernel/irq
Thomas Gleixner 52abb700e1 genirq: Clear action->thread_mask if IRQ_ONESHOT is not set
Xommit ac5637611(genirq: Unmask oneshot irqs when thread was not woken)
fails to unmask when a !IRQ_ONESHOT threaded handler is handled by
handle_level_irq.

This happens because thread_mask is or'ed unconditionally in
irq_wake_thread(), but for !IRQ_ONESHOT interrupts never cleared.  So
the check for !desc->thread_active fails and keeps the interrupt
disabled.

Keep the thread_mask zero for !IRQ_ONESHOT interrupts.

Document the thread_mask magic while at it.

Reported-and-tested-by: Sven Joachim <svenjoac@gmx.de>
Reported-and-tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-03-06 16:46:39 -08:00
..
autoprobe.c genirq: Handle pending irqs in irq_startup() 2012-02-15 11:56:59 +01:00
chip.c genirq: Handle pending irqs in irq_startup() 2012-02-15 11:56:59 +01:00
debug.h
devres.c
dummychip.c
generic-chip.c
handle.c
internals.h genirq: Handle pending irqs in irq_startup() 2012-02-15 11:56:59 +01:00
irqdesc.c
irqdomain.c devicetree/next changes queued for v3.3 merge window 2012-01-07 12:18:52 -08:00
Kconfig
Makefile
manage.c genirq: Clear action->thread_mask if IRQ_ONESHOT is not set 2012-03-06 16:46:39 -08:00
migration.c
pm.c
proc.c
resend.c
settings.h
spurious.c module_param: make bool parameters really bool (core code) 2012-01-13 09:32:18 +10:30