aboutsummaryrefslogtreecommitdiff
path: root/kernel/irq/debug.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-02-07 17:58:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-29 16:31:16 -0800
commitaa0eb3474beae8f6d9dcc2311dc02bea50cfd7b7 (patch)
tree2275df18ed472ad74c01ddcb8cef9909a5e9fd48 /kernel/irq/debug.h
parent72633f08ad74b93530b8e038041c450492a00ed5 (diff)
genirq: Unmask oneshot irqs when thread was not woken
commit ac5637611150281f398bb7a47e3fcb69a09e7803 upstream. When the primary handler of an interrupt which is marked IRQ_ONESHOT returns IRQ_HANDLED or IRQ_NONE, then the interrupt thread is not woken and the unmask logic of the interrupt line is never invoked. This keeps the interrupt masked forever. This was not noticed as most IRQ_ONESHOT users wake the thread unconditionally (usually because they cannot access the underlying device from hard interrupt context). Though this behaviour was nowhere documented and not necessarily intentional. Some drivers can avoid the thread wakeup in certain cases and run into the situation where the interrupt line s kept masked. Handle it gracefully. Reported-and-tested-by: Lothar Wassmann <lw@karo-electronics.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq/debug.h')
0 files changed, 0 insertions, 0 deletions