aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/irqdesc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-27 05:02:49 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-03-27 11:45:58 -0400
commit801a0e9ae36e9b487092e31699d28c0b9a21ad52 (patch)
treec448d150797272b09417f5410e7570742e59368b /kernel/irq/irqdesc.c
parentd72274e5895d11570a0a4a3214a1933c86d5ccb7 (diff)
genirq: Add irq disabled flag to irq_data state
Some irq_chip implementation require to know the disabled state of the interrupt in certain callbacks. Add a state flag and accessor to irq_data. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/irqdesc.c')
-rw-r--r--kernel/irq/irqdesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 6fb014f172f7..96c3268a509d 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -80,6 +80,7 @@ static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node)
80 desc->irq_data.handler_data = NULL; 80 desc->irq_data.handler_data = NULL;
81 desc->irq_data.msi_desc = NULL; 81 desc->irq_data.msi_desc = NULL;
82 irq_settings_clr_and_set(desc, ~0, _IRQ_DEFAULT_INIT_FLAGS); 82 irq_settings_clr_and_set(desc, ~0, _IRQ_DEFAULT_INIT_FLAGS);
83 irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED);
83 desc->istate = IRQS_DISABLED; 84 desc->istate = IRQS_DISABLED;
84 desc->handle_irq = handle_bad_irq; 85 desc->handle_irq = handle_bad_irq;
85 desc->depth = 1; 86 desc->depth = 1;