aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/migration.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-28 08:10:52 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-03-28 10:55:10 -0400
commit32f4125ebffee4f3c4dbc6a437fc656129eb9e60 (patch)
treed64c6bb7ba40c33734896303734416ea5b4f3290 /kernel/irq/migration.c
parentc2d0c555c22242c3a76e366074c4d83ef9fa3b8c (diff)
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>
Diffstat (limited to 'kernel/irq/migration.c')
-rw-r--r--kernel/irq/migration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/migration.c b/kernel/irq/migration.c
index ec4806d4778b..5e81d34b08d6 100644
--- a/kernel/irq/migration.c
+++ b/kernel/irq/migration.c
@@ -66,7 +66,7 @@ void irq_move_irq(struct irq_data *idata)
66 if (likely(!irqd_is_setaffinity_pending(idata))) 66 if (likely(!irqd_is_setaffinity_pending(idata)))
67 return; 67 return;
68 68
69 if (unlikely(desc->istate & IRQS_DISABLED)) 69 if (unlikely(irqd_irq_disabled(idata)))
70 return; 70 return;
71 71
72 /* 72 /*
@@ -74,7 +74,7 @@ void irq_move_irq(struct irq_data *idata)
74 * threaded interrupt with ONESHOT set, we can end up with an 74 * threaded interrupt with ONESHOT set, we can end up with an
75 * interrupt storm. 75 * interrupt storm.
76 */ 76 */
77 masked = desc->istate & IRQS_MASKED; 77 masked = irqd_irq_masked(idata);
78 if (!masked) 78 if (!masked)
79 idata->chip->irq_mask(idata); 79 idata->chip->irq_mask(idata);
80 irq_move_masked_irq(idata); 80 irq_move_masked_irq(idata);