]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Support per-IRQ thread disabling.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 6 Apr 2011 21:01:44 +0000 (06:01 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 23 Apr 2011 13:56:24 +0000 (15:56 +0200)
commit8585a7f103d8b3c40790b1762d01c87c68f76fd1
tree1d5f5ff0ec14e3ac84d4ec17b0de4d43dacf8118
parent26b220818be3e19a802e0188b620275a48331646
genirq: Support per-IRQ thread disabling.

This adds support for disabling threading on a per-IRQ basis via the IRQ
status instead of the IRQ flow, which is necessary for interrupts that
don't follow the natural IRQ flow channels, such as those that are
virtually created.

The new APIs added are simply:

irq_set_thread()
irq_set_nothread()

which follow the rest of the IRQ status routines.

Chained handlers also have IRQ_NOTHREAD set on them automatically, making
the lack of threading explicit rather than implicit. Subsequently, the
nothread flag can be viewed through the standard genirq debugging
facilities.

[ tglx: Fixed cleanup fallout ]

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Link: http://lkml.kernel.org/r/%3C20110406210135.GF18426%40linux-sh.org%3E
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/debug.h
kernel/irq/manage.c
kernel/irq/settings.h