aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.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/handle.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/handle.c')
-rw-r--r--kernel/irq/handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 517561fc7317..60fd5cd75c77 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -178,13 +178,13 @@ irqreturn_t handle_irq_event(struct irq_desc *desc)
178 irq_compat_clr_pending(desc); 178 irq_compat_clr_pending(desc);
179 desc->istate &= ~IRQS_PENDING; 179 desc->istate &= ~IRQS_PENDING;
180 irq_compat_set_progress(desc); 180 irq_compat_set_progress(desc);
181 desc->istate |= IRQS_INPROGRESS; 181 irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS);
182 raw_spin_unlock(&desc->lock); 182 raw_spin_unlock(&desc->lock);
183 183
184 ret = handle_irq_event_percpu(desc, action); 184 ret = handle_irq_event_percpu(desc, action);
185 185
186 raw_spin_lock(&desc->lock); 186 raw_spin_lock(&desc->lock);
187 desc->istate &= ~IRQS_INPROGRESS; 187 irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS);
188 irq_compat_clr_progress(desc); 188 irq_compat_clr_progress(desc);
189 return ret; 189 return ret;
190} 190}