diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-27 15:01:37 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:39:06 -0400 |
commit | 1318a481fc37c503a901b96ae06b692ca2b21af5 (patch) | |
tree | 2b1bb8f52af5938759af38efdfa8a868b02d5804 /include/linux/irq.h | |
parent | d895f51ebb54cefe367bda135fcf2cd734d51d03 (diff) |
genirq: Provide default irq init flags
Arch code sets it's own irq_desc.status flags right after boot and for
dynamically allocated interrupts. That might involve iterating over a
huge array.
Allow ARCH_IRQ_INIT_FLAGS to set separate flags aside of IRQ_DISABLED
which is the default.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index bea40556c5a6..30a300991ed4 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -214,6 +214,12 @@ struct irq_chip { | |||
214 | */ | 214 | */ |
215 | #include <asm/hw_irq.h> | 215 | #include <asm/hw_irq.h> |
216 | 216 | ||
217 | #ifndef ARCH_IRQ_INIT_FLAGS | ||
218 | # define ARCH_IRQ_INIT_FLAGS 0 | ||
219 | #endif | ||
220 | |||
221 | #define IRQ_DEFAULT_INIT_FLAGS (IRQ_DISABLED | ARCH_IRQ_INIT_FLAGS) | ||
222 | |||
217 | struct irqaction; | 223 | struct irqaction; |
218 | extern int setup_irq(unsigned int irq, struct irqaction *new); | 224 | extern int setup_irq(unsigned int irq, struct irqaction *new); |
219 | extern void remove_irq(unsigned int irq, struct irqaction *act); | 225 | extern void remove_irq(unsigned int irq, struct irqaction *act); |