aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_check.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-03-06 23:18:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-12 10:32:53 -0700
commitc847ac8e8e7447730aef70b94915f1c0880e6578 (patch)
treedbc1fb211b26eb9f7cc59d38641e4779e1ede88d /kernel/sysctl_check.c
parentd7838b04ecb08709b09063a8ada0aa2d29636c12 (diff)
downloadkernel_samsung_smdk4412-c847ac8e8e7447730aef70b94915f1c0880e6578.zip
kernel_samsung_smdk4412-c847ac8e8e7447730aef70b94915f1c0880e6578.tar.gz
kernel_samsung_smdk4412-c847ac8e8e7447730aef70b94915f1c0880e6578.tar.bz2
genirq: Clear action->thread_mask if IRQ_ONESHOT is not set
commit 52abb700e16a9aa4cbc03f3d7f80206cbbc80680 upstream. 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> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl_check.c')
0 files changed, 0 insertions, 0 deletions