Commit 40059784 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: rename irq_flags to bfin_irq_flags

rename irq_flags to bfin_irq_flags to avoid namespace
collision with common code
Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent b6070576
...@@ -307,8 +307,8 @@ ...@@ -307,8 +307,8 @@
GET_PDA(p0, r0); GET_PDA(p0, r0);
r0 = [p0 + PDA_IRQFLAGS]; r0 = [p0 + PDA_IRQFLAGS];
#else #else
p0.h = _irq_flags; p0.h = _bfin_irq_flags;
p0.l = _irq_flags; p0.l = _bfin_irq_flags;
r0 = [p0]; r0 = [p0];
#endif #endif
sti r0; sti r0;
......
...@@ -49,16 +49,16 @@ static __inline__ int irq_canonicalize(int irq) ...@@ -49,16 +49,16 @@ static __inline__ int irq_canonicalize(int irq)
/* Forward decl needed due to cdef inter dependencies */ /* Forward decl needed due to cdef inter dependencies */
static inline uint32_t __pure bfin_dspid(void); static inline uint32_t __pure bfin_dspid(void);
# define blackfin_core_id() (bfin_dspid() & 0xff) # 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 #else
extern unsigned long irq_flags; extern unsigned long bfin_irq_flags;
#endif #endif
#define local_irq_enable() \ #define local_irq_enable() \
__asm__ __volatile__( \ __asm__ __volatile__( \
"sti %0;" \ "sti %0;" \
: \ : \
: "d" (irq_flags) \ : "d" (bfin_irq_flags) \
) )
#define idle_with_irq_disabled() \ #define idle_with_irq_disabled() \
...@@ -68,7 +68,7 @@ extern unsigned long irq_flags; ...@@ -68,7 +68,7 @@ extern unsigned long irq_flags;
"sti %0;" \ "sti %0;" \
"idle;" \ "idle;" \
: \ : \
: "d" (irq_flags) \ : "d" (bfin_irq_flags) \
) )
#ifdef CONFIG_DEBUG_HWERR #ifdef CONFIG_DEBUG_HWERR
......
...@@ -922,8 +922,8 @@ _schedule_and_signal_from_int: ...@@ -922,8 +922,8 @@ _schedule_and_signal_from_int:
GET_PDA(p0, r0); /* Fetch current PDA (can't migrate to other CPU here) */ GET_PDA(p0, r0); /* Fetch current PDA (can't migrate to other CPU here) */
r0 = [p0 + PDA_IRQFLAGS]; r0 = [p0 + PDA_IRQFLAGS];
#else #else
p0.l = _irq_flags; p0.l = _bfin_irq_flags;
p0.h = _irq_flags; p0.h = _bfin_irq_flags;
r0 = [p0]; r0 = [p0];
#endif #endif
sti r0; sti r0;
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
* it would live otherwise). The 0x1f magic represents the IRQs we * it would live otherwise). The 0x1f magic represents the IRQs we
* cannot actually mask out in hardware. * cannot actually mask out in hardware.
*/ */
unsigned long irq_flags = 0x1f; unsigned long bfin_irq_flags = 0x1f;
EXPORT_SYMBOL(irq_flags); EXPORT_SYMBOL(bfin_irq_flags);
#endif #endif
/* The number of spurious interrupts */ /* The number of spurious interrupts */
...@@ -134,21 +134,21 @@ static void bfin_ack_noop(unsigned int irq) ...@@ -134,21 +134,21 @@ static void bfin_ack_noop(unsigned int irq)
static void bfin_core_mask_irq(unsigned int irq) static void bfin_core_mask_irq(unsigned int irq)
{ {
irq_flags &= ~(1 << irq); bfin_irq_flags &= ~(1 << irq);
if (!irqs_disabled()) if (!irqs_disabled())
local_irq_enable(); local_irq_enable();
} }
static void bfin_core_unmask_irq(unsigned int irq) 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 * 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 * are currently disabled we need not do anything; one of the
* callers will take care of setting IMASK to the proper value * callers will take care of setting IMASK to the proper value
* when reenabling interrupts. * 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. * what we need.
*/ */
if (!irqs_disabled()) if (!irqs_disabled())
...@@ -1048,7 +1048,7 @@ int __init init_arch_irq(void) ...@@ -1048,7 +1048,7 @@ int __init init_arch_irq(void)
CSYNC(); CSYNC();
printk(KERN_INFO "Configuring Blackfin Priority Driven Interrupts\n"); 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() * local_irq_enable()
*/ */
program_IAR(); program_IAR();
...@@ -1056,7 +1056,7 @@ int __init init_arch_irq(void) ...@@ -1056,7 +1056,7 @@ int __init init_arch_irq(void)
search_IAR(); search_IAR();
/* Enable interrupts IVG7-15 */ /* Enable interrupts IVG7-15 */
irq_flags |= IMASK_IVG15 | bfin_irq_flags |= IMASK_IVG15 |
IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 |
IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW;
......
...@@ -365,7 +365,7 @@ static void __cpuinit setup_secondary(unsigned int cpu) ...@@ -365,7 +365,7 @@ static void __cpuinit setup_secondary(unsigned int cpu)
/* Enable interrupt levels IVG7-15. IARs have been already /* Enable interrupt levels IVG7-15. IARs have been already
* programmed by the boot CPU. */ * programmed by the boot CPU. */
irq_flags |= IMASK_IVG15 | bfin_irq_flags |= IMASK_IVG15 |
IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 |
IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment