/* 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() \
                "sti %0;" \
                "idle;" \
                : \
-               : "d" (irq_flags) \
+               : "d" (bfin_irq_flags) \
        )
 
 #ifdef CONFIG_DEBUG_HWERR
 
  * 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 */
 
 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())
        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();
        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;
 
 
 
        /* 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;