]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: rename irq_flags to bfin_irq_flags
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 18 Nov 2008 09:48:22 +0000 (17:48 +0800)
committerBryan Wu <cooloney@kernel.org>
Tue, 18 Nov 2008 09:48:22 +0000 (17:48 +0800)
rename irq_flags to bfin_irq_flags to avoid namespace
collision with common code

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/context.S
arch/blackfin/include/asm/irq.h
arch/blackfin/mach-common/entry.S
arch/blackfin/mach-common/ints-priority.c
arch/blackfin/mach-common/smp.c

index 40d20b4a9b1f914d4fdd43f4603884b7c84a7402..9ce21f68e91406420ef854eb33de490c701c8979 100644 (file)
        GET_PDA(p0, r0);
        r0 = [p0 + PDA_IRQFLAGS];
 #else
-       p0.h = _irq_flags;
-       p0.l = _irq_flags;
+       p0.h = _bfin_irq_flags;
+       p0.l = _bfin_irq_flags;
        r0 = [p0];
 #endif
        sti r0;
index e43c20583fcde2852832f5af9e9157197b2a10d2..21e25f778a6308de586442550e5fd138529e9200 100644 (file)
@@ -49,16 +49,16 @@ static __inline__ int irq_canonicalize(int irq)
 /* Forward decl needed due to cdef inter dependencies */
 static inline uint32_t __pure bfin_dspid(void);
 # define blackfin_core_id() (bfin_dspid() & 0xff)
-# define irq_flags cpu_pda[blackfin_core_id()].imask
+# define bfin_irq_flags cpu_pda[blackfin_core_id()].imask
 #else
-extern unsigned long irq_flags;
+extern unsigned long bfin_irq_flags;
 #endif
 
 #define local_irq_enable() \
        __asm__ __volatile__( \
                "sti %0;" \
                : \
-               : "d" (irq_flags) \
+               : "d" (bfin_irq_flags) \
        )
 
 #define idle_with_irq_disabled() \
@@ -68,7 +68,7 @@ extern unsigned long irq_flags;
                "sti %0;" \
                "idle;" \
                : \
-               : "d" (irq_flags) \
+               : "d" (bfin_irq_flags) \
        )
 
 #ifdef CONFIG_DEBUG_HWERR
index 5531f49c84e632714117dc4cf256257c382de33d..e22c0a5cf32df954d3d94b090ba5f0972b1c629d 100644 (file)
@@ -922,8 +922,8 @@ _schedule_and_signal_from_int:
        GET_PDA(p0, r0);        /* Fetch current PDA (can't migrate to other CPU here) */
        r0 = [p0 + PDA_IRQFLAGS];
 #else
-       p0.l = _irq_flags;
-       p0.h = _irq_flags;
+       p0.l = _bfin_irq_flags;
+       p0.h = _bfin_irq_flags;
        r0 = [p0];
 #endif
        sti r0;
index 2efddcecc42b344767f2f10e60d48ae2f6b2a578..5a7c1c177d23df3b9afcbec54ab42d1fcca82a88 100644 (file)
@@ -64,8 +64,8 @@
  * it would live otherwise).  The 0x1f magic represents the IRQs we
  * cannot actually mask out in hardware.
  */
-unsigned long irq_flags = 0x1f;
-EXPORT_SYMBOL(irq_flags);
+unsigned long bfin_irq_flags = 0x1f;
+EXPORT_SYMBOL(bfin_irq_flags);
 #endif
 
 /* The number of spurious interrupts */
@@ -134,21 +134,21 @@ static void bfin_ack_noop(unsigned int irq)
 
 static void bfin_core_mask_irq(unsigned int irq)
 {
-       irq_flags &= ~(1 << irq);
+       bfin_irq_flags &= ~(1 << irq);
        if (!irqs_disabled())
                local_irq_enable();
 }
 
 static void bfin_core_unmask_irq(unsigned int irq)
 {
-       irq_flags |= 1 << irq;
+       bfin_irq_flags |= 1 << irq;
        /*
         * If interrupts are enabled, IMASK must contain the same value
-        * as irq_flags.  Make sure that invariant holds.  If interrupts
+        * as bfin_irq_flags.  Make sure that invariant holds.  If interrupts
         * are currently disabled we need not do anything; one of the
         * callers will take care of setting IMASK to the proper value
         * when reenabling interrupts.
-        * local_irq_enable just does "STI irq_flags", so it's exactly
+        * local_irq_enable just does "STI bfin_irq_flags", so it's exactly
         * what we need.
         */
        if (!irqs_disabled())
@@ -1048,7 +1048,7 @@ int __init init_arch_irq(void)
        CSYNC();
 
        printk(KERN_INFO "Configuring Blackfin Priority Driven Interrupts\n");
-       /* IMASK=xxx is equivalent to STI xx or irq_flags=xx,
+       /* IMASK=xxx is equivalent to STI xx or bfin_irq_flags=xx,
         * local_irq_enable()
         */
        program_IAR();
@@ -1056,7 +1056,7 @@ int __init init_arch_irq(void)
        search_IAR();
 
        /* Enable interrupts IVG7-15 */
-       irq_flags |= IMASK_IVG15 |
+       bfin_irq_flags |= IMASK_IVG15 |
            IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 |
            IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW;
 
index 7aeecedd3147085950abee74700f79c4d3c98a94..66c47a702da448cad72826cee3d937ed6a267135 100644 (file)
@@ -365,7 +365,7 @@ static void __cpuinit setup_secondary(unsigned int cpu)
 
        /* Enable interrupt levels IVG7-15. IARs have been already
         * programmed by the boot CPU.  */
-       irq_flags |= IMASK_IVG15 |
+       bfin_irq_flags |= IMASK_IVG15 |
            IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 |
            IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW;