diff options
author | Grant Likely <grant.likely@linaro.org> | 2013-05-29 03:10:52 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-05-29 10:57:11 +0200 |
commit | e8bd834f73714378ef110a64287db1b77033c8da (patch) | |
tree | 344493bc19c638aca611e3b5c7e44e234288685a /include/linux/irq.h | |
parent | 088f40b7b027dad6519712ff224a5798dd62a204 (diff) | |
download | linux-stable-e8bd834f73714378ef110a64287db1b77033c8da.tar.gz linux-stable-e8bd834f73714378ef110a64287db1b77033c8da.tar.bz2 linux-stable-e8bd834f73714378ef110a64287db1b77033c8da.zip |
genirq: irqchip: Add mask to block out invalid irqs
Some controllers have irqs that aren't wired up and must never be used.
For the generic chip attached to an irq_domain this provides a mask that
can be used to block out particular irqs so that they never get mapped.
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Link: http://lkml.kernel.org/r/1369793454-19197-2-git-send-email-grant.likely@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index af7052c6a45c..298a9b9ce675 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -679,6 +679,7 @@ struct irq_chip_type { * @num_ct: Number of available irq_chip_type instances (usually 1) * @private: Private data for non generic chip callbacks * @installed: bitfield to denote installed interrupts + * @unused: bitfield to denote unused interrupts * @domain: irq domain pointer * @list: List head for keeping track of instances * @chip_types: Array of interrupt irq_chip_types @@ -702,6 +703,7 @@ struct irq_chip_generic { unsigned int num_ct; void *private; unsigned long installed; + unsigned long unused; struct irq_domain *domain; struct list_head list; struct irq_chip_type chip_types[0]; |