aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2015-07-13 16:30:04 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2015-07-22 05:57:09 -0400
commit3bc38fc110c642c0a455a5214465bb4d62805a75 (patch)
tree51b26437602700fa02e1283df3bfd578865c61d5
parentc0d3fce5e192c6b45a9d8e06aecfcec546f73884 (diff)
ARM64/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> Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/kernel/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c
index 240b75c0e94f..463fa2e7e34c 100644
--- a/arch/arm64/kernel/irq.c
+++ b/arch/arm64/kernel/irq.c
@@ -61,7 +61,7 @@ void __init init_IRQ(void)
61static bool migrate_one_irq(struct irq_desc *desc) 61static bool migrate_one_irq(struct irq_desc *desc)
62{ 62{
63 struct irq_data *d = irq_desc_get_irq_data(desc); 63 struct irq_data *d = irq_desc_get_irq_data(desc);
64 const struct cpumask *affinity = d->affinity; 64 const struct cpumask *affinity = irq_data_get_affinity_mask(d);
65 struct irq_chip *c; 65 struct irq_chip *c;
66 bool ret = false; 66 bool ret = false;
67 67
@@ -81,7 +81,7 @@ static bool migrate_one_irq(struct irq_desc *desc)
81 if (!c->irq_set_affinity) 81 if (!c->irq_set_affinity)
82 pr_debug("IRQ%u: unable to set affinity\n", d->irq); 82 pr_debug("IRQ%u: unable to set affinity\n", d->irq);
83 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) 83 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret)
84 cpumask_copy(d->affinity, affinity); 84 cpumask_copy(irq_data_get_affinity_mask(d), affinity);
85 85
86 return ret; 86 return ret;
87} 87}