summaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-28 16:41:14 +0200
committerThomas Gleixner <tglx@linutronix.de>2011-03-28 16:55:12 +0200
commit9cff60dfc3d54b60bc069627cee5624bfaa3f823 (patch)
tree488202912c3d197baaf63202db61f9393201760f /include/linux/irq.h
parent33b054b867b84015173a38d9cd9ff513b6498818 (diff)
downloadop-kernel-dev-9cff60dfc3d54b60bc069627cee5624bfaa3f823.zip
op-kernel-dev-9cff60dfc3d54b60bc069627cee5624bfaa3f823.tar.gz
genirq: Provide setter inline for IRQD_IRQ_INPROGRESS
Special function for demultiplexing handlers which can be disabled via disable_irq(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 41fc783..84e1c58 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -256,6 +256,21 @@ static inline bool irqd_irq_inprogress(struct irq_data *d)
return d->state_use_accessors & IRQD_IRQ_INPROGRESS;
}
+/*
+ * Functions for chained handlers which can be enabled/disabled by the
+ * standard disable_irq/enable_irq calls. Must be called with
+ * irq_desc->lock held.
+ */
+static inline void irqd_set_chained_irq_inprogress(struct irq_data *d)
+{
+ d->state_use_accessors |= IRQD_IRQ_INPROGRESS;
+}
+
+static inline void irqd_clr_chained_irq_inprogress(struct irq_data *d)
+{
+ d->state_use_accessors &= ~IRQD_IRQ_INPROGRESS;
+}
+
/**
* struct irq_chip - hardware interrupt chip descriptor
*
OpenPOWER on IntegriCloud