aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2015-06-01 04:05:32 -0400
committerThomas Gleixner <tglx@linutronix.de>2015-07-31 16:20:04 -0400
commitd2109a12198edf22eb85e475c223eea14b9c3fbe (patch)
treeb81cf3859d3f275f4a30c3e5e7e78165d49d9820 /arch/parisc
parent9d03e784bc225e7ccaa53bcdb64c8ebf96f153d7 (diff)
parisc/irq: Use access helper irq_data_get_affinity_mask()
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: James E.J. Bottomley <jejb@parisc-linux.org> Cc: Helge Deller <deller@gmx.de> Link: http://lkml.kernel.org/r/1433145945-789-24-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/irq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c
index f3191db6e2e9..413ec3c3f9cc 100644
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
@@ -131,7 +131,7 @@ static int cpu_set_affinity_irq(struct irq_data *d, const struct cpumask *dest,
131 if (cpu_dest < 0) 131 if (cpu_dest < 0)
132 return -1; 132 return -1;
133 133
134 cpumask_copy(d->affinity, dest); 134 cpumask_copy(irq_data_get_affinity_mask(d), dest);
135 135
136 return 0; 136 return 0;
137} 137}
@@ -339,7 +339,7 @@ unsigned long txn_affinity_addr(unsigned int irq, int cpu)
339{ 339{
340#ifdef CONFIG_SMP 340#ifdef CONFIG_SMP
341 struct irq_data *d = irq_get_irq_data(irq); 341 struct irq_data *d = irq_get_irq_data(irq);
342 cpumask_copy(d->affinity, cpumask_of(cpu)); 342 cpumask_copy(irq_data_get_affinity_mask(d), cpumask_of(cpu));
343#endif 343#endif
344 344
345 return per_cpu(cpu_data, cpu).txn_addr; 345 return per_cpu(cpu_data, cpu).txn_addr;
@@ -508,7 +508,7 @@ void do_cpu_irq_mask(struct pt_regs *regs)
508 unsigned long eirr_val; 508 unsigned long eirr_val;
509 int irq, cpu = smp_processor_id(); 509 int irq, cpu = smp_processor_id();
510#ifdef CONFIG_SMP 510#ifdef CONFIG_SMP
511 struct irq_desc *desc; 511 struct irq_data *irq_data;
512 cpumask_t dest; 512 cpumask_t dest;
513#endif 513#endif
514 514
@@ -522,9 +522,9 @@ void do_cpu_irq_mask(struct pt_regs *regs)
522 irq = eirr_to_irq(eirr_val); 522 irq = eirr_to_irq(eirr_val);
523 523
524#ifdef CONFIG_SMP 524#ifdef CONFIG_SMP
525 desc = irq_to_desc(irq); 525 irq_data = irq_get_irq_data(irq);
526 cpumask_copy(&dest, desc->irq_data.affinity); 526 cpumask_copy(&dest, irq_data_get_affinity_mask(irq_data));
527 if (irqd_is_per_cpu(&desc->irq_data) && 527 if (irqd_is_per_cpu(irq_data) &&
528 !cpumask_test_cpu(smp_processor_id(), &dest)) { 528 !cpumask_test_cpu(smp_processor_id(), &dest)) {
529 int cpu = cpumask_first(&dest); 529 int cpu = cpumask_first(&dest);
530 530