]> git.baikalelectronics.ru Git - kernel.git/commit
platform-drivers: x86: pmic: Use request_irq instead of chained handler
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Feb 2011 20:41:30 +0000 (21:41 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 21 Feb 2011 22:06:11 +0000 (17:06 -0500)
commitab9e7b3766ee5817110e663ac933fb411023d2a1
treeb389790651fb384b1fbef96789c3b0eb179ee99c
parent1d94c6f3d36ca4cc9a63d67c0f580e324afa7db5
platform-drivers: x86: pmic: Use request_irq instead of chained handler

There is no need to install a chained handler for this hardware. This
is a plain x86 IOAPIC interrupt which is handled by the core code
perfectly fine. There is nothing special about demultiplexing these
gpio interrupts which justifies a custom hack. Replace it by a plain
old interrupt handler installed with request_irq. That makes the code
agnostic about the underlying primary interrupt hardware. The overhead
for this is minimal, but it gives us the advantage of accounting,
balancing and to detect interrupt storms. gpio interrupts are not
really that performance critical.

Patch fixups from akpm

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/platform/x86/intel_pmic_gpio.c