]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/irq/internals.h
genirq: Mark polled irqs and defer the real handler
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Feb 2011 09:34:30 +0000 (10:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 19 Feb 2011 11:58:09 +0000 (12:58 +0100)
commitfe200ae48ef5c79bf7941fe8046ff9505c570ff6
tree767d2cf011437a266a655ce2ec39360cb85f7f28
parentd05c65fff0ef672be75429266751f0e015b54d94
genirq: Mark polled irqs and defer the real handler

With the chip.end() function gone we might run into a situation where
a poll call runs and the real interrupt comes in, sees IRQ_INPROGRESS
and disables the line. That might be a perfect working one, which will
then be masked forever.

So mark them polled while the poll runs. When the real handler sees
IRQ_INPROGRESS it checks the poll flag and waits for the polling to
complete. Add the necessary amount of sanity checks to it to avoid
deadlocks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/internals.h
kernel/irq/spurious.c