genirq: Move INPROGRESS, MASKED and DISABLED state flags to irq_data

We really need these flags for some of the interrupt chips. Move it
from internal state to irq_data and provide proper accessors.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Daney <ddaney@caviumnetworks.com>
This commit is contained in:
Thomas Gleixner
2011-03-28 14:10:52 +02:00
parent c2d0c555c2
commit 32f4125ebf
9 changed files with 64 additions and 59 deletions

View File

@ -66,7 +66,7 @@ void irq_move_irq(struct irq_data *idata)
if (likely(!irqd_is_setaffinity_pending(idata)))
return;
if (unlikely(desc->istate & IRQS_DISABLED))
if (unlikely(irqd_irq_disabled(idata)))
return;
/*
@ -74,7 +74,7 @@ void irq_move_irq(struct irq_data *idata)
* threaded interrupt with ONESHOT set, we can end up with an
* interrupt storm.
*/
masked = desc->istate & IRQS_MASKED;
masked = irqd_irq_masked(idata);
if (!masked)
idata->chip->irq_mask(idata);
irq_move_masked_irq(idata);