ARC: [intc] mask/unmask can be hidden again
authorVineet Gupta <vgupta@synopsys.com>
Wed, 25 Jun 2014 11:55:46 +0000 (17:25 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 23 Jul 2014 05:52:02 +0000 (11:22 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/irqflags.h
arch/arc/kernel/irq.c

index cb7efc29f16ff076778c254f97d17212c0631e89..587df8236e8b4c91e896893522f7b060c3cc6d0d 100644 (file)
@@ -131,24 +131,6 @@ static inline int arch_irqs_disabled(void)
        return arch_irqs_disabled_flags(arch_local_save_flags());
 }
 
-static inline void arch_mask_irq(unsigned int irq)
-{
-       unsigned int ienb;
-
-       ienb = read_aux_reg(AUX_IENABLE);
-       ienb &= ~(1 << irq);
-       write_aux_reg(AUX_IENABLE, ienb);
-}
-
-static inline void arch_unmask_irq(unsigned int irq)
-{
-       unsigned int ienb;
-
-       ienb = read_aux_reg(AUX_IENABLE);
-       ienb |= (1 << irq);
-       write_aux_reg(AUX_IENABLE, ienb);
-}
-
 #else
 
 #ifdef CONFIG_TRACE_IRQFLAGS
index 02ffc764c97a502664d3c6d00f13fac02f6e8666..620ec2fe32a94f855c6e3db0a04fa25c41d5d1c2 100644 (file)
@@ -55,20 +55,28 @@ void arc_init_IRQ(void)
  * below, per IRQ.
  */
 
-static void arc_mask_irq(struct irq_data *data)
+static void arc_irq_mask(struct irq_data *data)
 {
-       arch_mask_irq(data->irq);
+       unsigned int ienb;
+
+       ienb = read_aux_reg(AUX_IENABLE);
+       ienb &= ~(1 << data->irq);
+       write_aux_reg(AUX_IENABLE, ienb);
 }
 
-static void arc_unmask_irq(struct irq_data *data)
+static void arc_irq_unmask(struct irq_data *data)
 {
-       arch_unmask_irq(data->irq);
+       unsigned int ienb;
+
+       ienb = read_aux_reg(AUX_IENABLE);
+       ienb |= (1 << data->irq);
+       write_aux_reg(AUX_IENABLE, ienb);
 }
 
 static struct irq_chip onchip_intc = {
        .name           = "ARC In-core Intc",
-       .irq_mask       = arc_mask_irq,
-       .irq_unmask     = arc_unmask_irq,
+       .irq_mask       = arc_irq_mask,
+       .irq_unmask     = arc_irq_unmask,
 };
 
 static int arc_intc_domain_map(struct irq_domain *d, unsigned int irq,