aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/migration.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-05 09:20:04 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:18 -0500
commitf230b6d5c48f8d12f4dfa1f8b5ab0b0320076d21 (patch)
treed4d30f77ab196930dd2d2982e90b1f2b5fd9bbe2 /kernel/irq/migration.c
parent91c499178139d6597e68db19638e4135510a34b8 (diff)
genirq: Add IRQ_MOVE_PENDING to irq_data.state
chip implementations need to know about it. Keep status in sync until all users are fixed. Accessor function: irqd_is_setaffinity_pending(irqdata) Coders who access them directly will be tracked down and slapped with stinking trouts. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/migration.c')
-rw-r--r--kernel/irq/migration.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/irq/migration.c b/kernel/irq/migration.c
index 6f2f98480354..9485ae081dcd 100644
--- a/kernel/irq/migration.c
+++ b/kernel/irq/migration.c
@@ -9,7 +9,7 @@ void move_masked_irq(int irq)
9 struct irq_desc *desc = irq_to_desc(irq); 9 struct irq_desc *desc = irq_to_desc(irq);
10 struct irq_chip *chip = desc->irq_data.chip; 10 struct irq_chip *chip = desc->irq_data.chip;
11 11
12 if (likely(!(desc->status & IRQ_MOVE_PENDING))) 12 if (likely(!irqd_is_setaffinity_pending(&desc->irq_data)))
13 return; 13 return;
14 14
15 /* 15 /*
@@ -20,7 +20,7 @@ void move_masked_irq(int irq)
20 return; 20 return;
21 } 21 }
22 22
23 desc->status &= ~IRQ_MOVE_PENDING; 23 irqd_clr_move_pending(&desc->irq_data);
24 24
25 if (unlikely(cpumask_empty(desc->pending_mask))) 25 if (unlikely(cpumask_empty(desc->pending_mask)))
26 return; 26 return;
@@ -58,7 +58,7 @@ void move_native_irq(int irq)
58 struct irq_desc *desc = irq_to_desc(irq); 58 struct irq_desc *desc = irq_to_desc(irq);
59 bool masked; 59 bool masked;
60 60
61 if (likely(!(desc->status & IRQ_MOVE_PENDING))) 61 if (likely(!irqd_is_setaffinity_pending(&desc->irq_data)))
62 return; 62 return;
63 63
64 if (unlikely(desc->istate & IRQS_DISABLED)) 64 if (unlikely(desc->istate & IRQS_DISABLED))