diff options
author | Paul Burton <paul.burton@imgtec.com> | 2017-08-13 00:36:22 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-09-04 07:53:14 -0400 |
commit | d3e8cf44792d60047ba45036abfc38ab414e49e5 (patch) | |
tree | efc6f1708e962c1b5f27b88e487b5031931863c4 /drivers/irqchip | |
parent | c26ba670cdb84e0556436be7bf68a75a1d4f4d76 (diff) |
irqchip: mips-gic: Remove gic_map_to_pin()
Remove the gic_map_to_pin() function in favour of using the new
write_gic_map_pin() accessor function which isn't any more complex to
use & allows us to drop a level of abstraction.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17032/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-mips-gic.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index 8aae9d20b82c..f1a4e5d86ca3 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c | |||
@@ -81,12 +81,6 @@ static inline void gic_write(unsigned int reg, unsigned long val) | |||
81 | return gic_write64(reg, (u64)val); | 81 | return gic_write64(reg, (u64)val); |
82 | } | 82 | } |
83 | 83 | ||
84 | static inline void gic_map_to_pin(unsigned int intr, unsigned int pin) | ||
85 | { | ||
86 | gic_write32(GIC_REG(SHARED, GIC_SH_INTR_MAP_TO_PIN_BASE) + | ||
87 | GIC_SH_MAP_TO_PIN(intr), GIC_MAP_TO_PIN_MSK | pin); | ||
88 | } | ||
89 | |||
90 | static inline void gic_map_to_vpe(unsigned int intr, unsigned int vpe) | 84 | static inline void gic_map_to_vpe(unsigned int intr, unsigned int vpe) |
91 | { | 85 | { |
92 | gic_write(GIC_REG(SHARED, GIC_SH_INTR_MAP_TO_VPE_BASE) + | 86 | gic_write(GIC_REG(SHARED, GIC_SH_INTR_MAP_TO_VPE_BASE) + |
@@ -491,7 +485,7 @@ static int gic_shared_irq_domain_map(struct irq_domain *d, unsigned int virq, | |||
491 | int i; | 485 | int i; |
492 | 486 | ||
493 | spin_lock_irqsave(&gic_lock, flags); | 487 | spin_lock_irqsave(&gic_lock, flags); |
494 | gic_map_to_pin(intr, gic_cpu_pin); | 488 | write_gic_map_pin(intr, GIC_MAP_PIN_MAP_TO_PIN | gic_cpu_pin); |
495 | gic_map_to_vpe(intr, mips_cm_vp_id(vpe)); | 489 | gic_map_to_vpe(intr, mips_cm_vp_id(vpe)); |
496 | for (i = 0; i < min(gic_vpes, NR_CPUS); i++) | 490 | for (i = 0; i < min(gic_vpes, NR_CPUS); i++) |
497 | clear_bit(intr, pcpu_masks[i].pcpu_mask); | 491 | clear_bit(intr, pcpu_masks[i].pcpu_mask); |