Commit 9cff60dfc3d54b60bc069627cee5624bfaa3f823

Authored by Thomas Gleixner
1 parent 33b054b867

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>

Showing 1 changed file with 15 additions and 0 deletions Side-by-side Diff

... ... @@ -256,6 +256,21 @@
256 256 return d->state_use_accessors & IRQD_IRQ_INPROGRESS;
257 257 }
258 258  
  259 +/*
  260 + * Functions for chained handlers which can be enabled/disabled by the
  261 + * standard disable_irq/enable_irq calls. Must be called with
  262 + * irq_desc->lock held.
  263 + */
  264 +static inline void irqd_set_chained_irq_inprogress(struct irq_data *d)
  265 +{
  266 + d->state_use_accessors |= IRQD_IRQ_INPROGRESS;
  267 +}
  268 +
  269 +static inline void irqd_clr_chained_irq_inprogress(struct irq_data *d)
  270 +{
  271 + d->state_use_accessors &= ~IRQD_IRQ_INPROGRESS;
  272 +}
  273 +
259 274 /**
260 275 * struct irq_chip - hardware interrupt chip descriptor
261 276 *