MIPS: Remove gic_{enable,disable}_interrupt()
authorAndrew Bresticker <abrestic@chromium.org>
Thu, 18 Sep 2014 21:47:14 +0000 (14:47 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:44:53 +0000 (07:44 +0100)
Nothing calls gic_{enable,disable}_interrupt() any more.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Qais Yousef <qais.yousef@imgtec.com>
Tested-by: Qais Yousef <qais.yousef@imgtec.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Jeffrey Deans <jeffrey.deans@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: Jonas Gorski <jogo@openwrt.org>
Cc: John Crispin <blogic@openwrt.org>
Cc: David Daney <ddaney.cavm@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7806/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/gic.h
arch/mips/mti-malta/malta-int.c
arch/mips/mti-sead3/sead3-int.c

index d7699cf7e135e22f84b0f4c5e45028ce5567d404..022d83136c5af88a47535dc521972a949129d4c4 100644 (file)
@@ -376,8 +376,6 @@ extern void gic_bind_eic_interrupt(int irq, int set);
 extern unsigned int gic_get_timer_pending(void);
 extern void gic_get_int_mask(unsigned long *dst, const unsigned long *src);
 extern unsigned int gic_get_int(void);
-extern void gic_enable_interrupt(int irq_vec);
-extern void gic_disable_interrupt(int irq_vec);
 extern void gic_irq_ack(struct irq_data *d);
 extern void gic_finish_irq(struct irq_data *d);
 extern void gic_platform_init(int irqs, struct irq_chip *irq_controller);
index e4f43baa8f676e3c561f3cc1825888b40136e89b..5c3120857987c1e5bd2731f3573fe44aa1742cc0 100644 (file)
@@ -715,16 +715,6 @@ int malta_be_handler(struct pt_regs *regs, int is_fixup)
        return retval;
 }
 
-void gic_enable_interrupt(int irq_vec)
-{
-       GIC_SET_INTR_MASK(irq_vec);
-}
-
-void gic_disable_interrupt(int irq_vec)
-{
-       GIC_CLR_INTR_MASK(irq_vec);
-}
-
 void gic_irq_ack(struct irq_data *d)
 {
        int irq = (d->irq - gic_irq_base);
index 6a560ac03def0db5f2a794529998cf5e39ad1887..9d5b5bd3a1d2ac22a8fa32f4751a9186ec8e0d5a 100644 (file)
@@ -85,40 +85,6 @@ void __init arch_init_irq(void)
                        ARRAY_SIZE(gic_intr_map), MIPS_GIC_IRQ_BASE);
 }
 
-void gic_enable_interrupt(int irq_vec)
-{
-       unsigned int i, irq_source;
-
-       /* enable all the interrupts associated with this vector */
-       for (i = 0; i < gic_shared_intr_map[irq_vec].num_shared_intr; i++) {
-               irq_source = gic_shared_intr_map[irq_vec].intr_list[i];
-               GIC_SET_INTR_MASK(irq_source);
-       }
-       /* enable all local interrupts associated with this vector */
-       if (gic_shared_intr_map[irq_vec].local_intr_mask) {
-               GICWRITE(GIC_REG(VPE_LOCAL, GIC_VPE_OTHER_ADDR), 0);
-               GICWRITE(GIC_REG(VPE_OTHER, GIC_VPE_SMASK),
-                       gic_shared_intr_map[irq_vec].local_intr_mask);
-       }
-}
-
-void gic_disable_interrupt(int irq_vec)
-{
-       unsigned int i, irq_source;
-
-       /* disable all the interrupts associated with this vector */
-       for (i = 0; i < gic_shared_intr_map[irq_vec].num_shared_intr; i++) {
-               irq_source = gic_shared_intr_map[irq_vec].intr_list[i];
-               GIC_CLR_INTR_MASK(irq_source);
-       }
-       /* disable all local interrupts associated with this vector */
-       if (gic_shared_intr_map[irq_vec].local_intr_mask) {
-               GICWRITE(GIC_REG(VPE_LOCAL, GIC_VPE_OTHER_ADDR), 0);
-               GICWRITE(GIC_REG(VPE_OTHER, GIC_VPE_RMASK),
-                       gic_shared_intr_map[irq_vec].local_intr_mask);
-       }
-}
-
 void gic_irq_ack(struct irq_data *d)
 {
        GIC_CLR_INTR_MASK(d->irq - gic_irq_base);