diff --git a/[refs] b/[refs] index ee5b7a62e981..a84e47860622 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 33b054b867b84015173a38d9cd9ff513b6498818 +refs/heads/master: 9cff60dfc3d54b60bc069627cee5624bfaa3f823 diff --git a/trunk/include/linux/irq.h b/trunk/include/linux/irq.h index 41fc783171fd..84e1c5832c93 100644 --- a/trunk/include/linux/irq.h +++ b/trunk/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 *