Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258202
b: refs/heads/master
c: ca15af1
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jul 21, 2011
1 parent d4eee4b commit 83e9457
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dfc54e087c15f823ee9b6541d2f0f314e69cbed
refs/heads/master: ca15af19ac07908c8ca386f6d944a18aa343b868
10 changes: 4 additions & 6 deletions trunk/arch/arm/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 83e9457

Please sign in to comment.