]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] do_IRQ cleanup
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 25 Oct 2006 14:57:04 +0000 (23:57 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 30 Nov 2006 01:14:49 +0000 (01:14 +0000)
Now we have both function and macro version of do_IRQ() and the former
is used only by DEC and non-preemptive kernel.  This patch makes
everyone use the macro version and removes the function version.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/dec/int-handler.S
arch/mips/dec/setup.c
arch/mips/kernel/irq.c
include/asm-mips/irq.h

index 31dd47d1002d4d8cce90ce890478ca2fe4f1d811..b251ef864c33b281fa899a295c266f10f48db98d 100644 (file)
@@ -267,7 +267,7 @@ handle_it:
                LONG_L  s0, TI_REGS($28)
                LONG_S  sp, TI_REGS($28)
                PTR_LA  ra, ret_from_irq
-               j       do_IRQ
+               j       dec_irq_dispatch
                 nop
 
 #ifdef CONFIG_32BIT
index 6b7481e97becc0ede20ce2414dc76c73ef3e1bf1..d34032ac492a1ac24a9954f2ab789780b2bb8a04 100644 (file)
@@ -761,3 +761,9 @@ void __init arch_init_irq(void)
        if (dec_interrupt[DEC_IRQ_HALT] >= 0)
                setup_irq(dec_interrupt[DEC_IRQ_HALT], &haltirq);
 }
+
+asmlinkage unsigned int dec_irq_dispatch(unsigned int irq)
+{
+       do_IRQ(irq);
+       return 0;
+}
index e997c9454f4728dc6ad67c2641cad4fc845b770d..b339798b3172d5e23b89428d40302ab78ba85959 100644 (file)
@@ -88,25 +88,6 @@ atomic_t irq_err_count;
 unsigned long irq_hwmask[NR_IRQS];
 #endif /* CONFIG_MIPS_MT_SMTC */
 
-#undef do_IRQ
-
-/*
- * do_IRQ handles all normal device IRQ's (the special
- * SMP cross-CPU interrupts have their own specific
- * handlers).
- */
-asmlinkage unsigned int do_IRQ(unsigned int irq)
-{
-       irq_enter();
-
-       __DO_IRQ_SMTC_HOOK();
-       __do_IRQ(irq);
-
-       irq_exit();
-
-       return 1;
-}
-
 /*
  * Generic, controller-independent functions:
  */
index aed370770225793ff721a1c4d545f0f7a4e9f9a8..67657089efa7264b207c9555e7b186ee36648d51 100644 (file)
@@ -24,8 +24,6 @@ static inline int irq_canonicalize(int irq)
 #define irq_canonicalize(irq) (irq)    /* Sane hardware, sane code ... */
 #endif
 
-extern asmlinkage unsigned int do_IRQ(unsigned int irq);
-
 #ifdef CONFIG_MIPS_MT_SMTC
 /*
  * Clear interrupt mask handling "backstop" if irq_hwmask
@@ -43,8 +41,6 @@ do {                                                                  \
 #define __DO_IRQ_SMTC_HOOK() do { } while (0)
 #endif
 
-#ifdef CONFIG_PREEMPT
-
 /*
  * do_IRQ handles all normal device IRQ's (the special
  * SMP cross-CPU interrupts have their own specific
@@ -61,8 +57,6 @@ do {                                                                  \
        irq_exit();                                                     \
 } while (0)
 
-#endif
-
 extern void arch_init_irq(void);
 extern void spurious_interrupt(void);