diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-07-14 09:32:32 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2015-07-14 09:53:13 +0100 |
commit | 7ce0c22b07871402f9fb8939e09fb4c10811438a (patch) | |
tree | 3a99f8eb446ef194b5e0731a542cb91c3dd8cedd /arch/metag | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) | |
download | linux-stable-7ce0c22b07871402f9fb8939e09fb4c10811438a.tar.gz linux-stable-7ce0c22b07871402f9fb8939e09fb4c10811438a.tar.bz2 linux-stable-7ce0c22b07871402f9fb8939e09fb4c10811438a.zip |
metag/irq: Use access helper irq_data_get_affinity_mask()
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag')
-rw-r--r-- | arch/metag/kernel/irq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/metag/kernel/irq.c b/arch/metag/kernel/irq.c index 4f8f1f87ef11..a336094a7a6c 100644 --- a/arch/metag/kernel/irq.c +++ b/arch/metag/kernel/irq.c @@ -270,23 +270,25 @@ void migrate_irqs(void) for_each_active_irq(i) { struct irq_data *data = irq_get_irq_data(i); + struct cpumask *mask; unsigned int newcpu; if (irqd_is_per_cpu(data)) continue; - if (!cpumask_test_cpu(cpu, data->affinity)) + mask = irq_data_get_affinity_mask(data); + if (!cpumask_test_cpu(cpu, mask)) continue; - newcpu = cpumask_any_and(data->affinity, cpu_online_mask); + newcpu = cpumask_any_and(mask, cpu_online_mask); if (newcpu >= nr_cpu_ids) { pr_info_ratelimited("IRQ%u no longer affine to CPU%u\n", i, cpu); - cpumask_setall(data->affinity); + cpumask_setall(mask); } - irq_set_affinity(i, data->affinity); + irq_set_affinity(i, mask); } } #endif /* CONFIG_HOTPLUG_CPU */ |