aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/irq.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-21 09:51:13 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-21 10:00:27 -0400
commit2ef75701d1711a1feee2a82b42a2597ddc05f88b (patch)
tree376c474932009c459975c9d3865003834f021ad8 /arch/arm/kernel/irq.c
parentcf6ace16a3cd8b728fb0afa68368fd40bbeae19f (diff)
ARM: CPU hotplug: fix abuse of irqdesc->node
irqdesc's node member is supposed to mark the numa node number for the interrupt. Our use of it is non-standard. Remove this, replacing the functionality with a test of the affinity mask. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/irq.c')
-rw-r--r--arch/arm/kernel/irq.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index 83bbad03fcc6..d7aa5c97877c 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -166,15 +166,9 @@ void migrate_irqs(void)
166 bool affinity_broken = false; 166 bool affinity_broken = false;
167 167
168 raw_spin_lock(&desc->lock); 168 raw_spin_lock(&desc->lock);
169 do { 169 if (desc->action != NULL &&
170 if (desc->action == NULL) 170 cpumask_test_cpu(smp_processor_id(), d->affinity))
171 break;
172
173 if (d->node != cpu)
174 break;
175
176 affinity_broken = migrate_one_irq(d); 171 affinity_broken = migrate_one_irq(d);
177 } while (0);
178 raw_spin_unlock(&desc->lock); 172 raw_spin_unlock(&desc->lock);
179 173
180 if (affinity_broken && printk_ratelimit()) 174 if (affinity_broken && printk_ratelimit())