summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/irq.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-21 18:07:56 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-21 18:07:56 +0400
commitca15af19ac07908c8ca386f6d944a18aa343b868 (patch)
tree3e2e729a427c1d421c654503f399b83a37e4d098 /arch/arm/kernel/irq.c
parent5dfc54e087c15f823ee9b6541d2f0f314e69cbed (diff)
downloadlinux-ca15af19ac07908c8ca386f6d944a18aa343b868.tar.xz
ARM: CPU hotplug: pass in proper affinity mask on IRQ migration
Now that the GIC takes care of selecting a target interrupt from the affinity mask, we don't need all this complexity in the core code anymore. Just detect when we need to break affinity. 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, 4 insertions, 6 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index d7aa5c97877c..ab63c05290e5 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -133,17 +133,15 @@ int __init arch_probe_nr_irqs(void)
static bool migrate_one_irq(struct irq_data *d)
{
- unsigned int cpu = cpumask_any_and(d->affinity, cpu_online_mask);
+ const struct cpumask *affinity = d->affinity;
bool ret = false;
- if (cpu >= nr_cpu_ids) {
- cpu = cpumask_any(cpu_online_mask);
+ if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) {
+ affinity cpu_online_mask;
ret = true;
}
- pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", d->irq, d->node, cpu);
-
- d->chip->irq_set_affinity(d, cpumask_of(cpu), true);
+ d->chip->irq_set_affinity(d, affinity, true);
return ret;
}