Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127045
b: refs/heads/master
c: 4005978
h: refs/heads/master
i:
  127043: f7aa089
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 18, 2008
1 parent 5e68070 commit 7a4932a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b60705765a635728187e5cea5f36914886675013
refs/heads/master: 400597842452c02916a61a51f3154dd032c2d569
4 changes: 2 additions & 2 deletions trunk/arch/blackfin/include/asm/context.S
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@
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;
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/blackfin/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() \
Expand All @@ -68,7 +68,7 @@ extern unsigned long irq_flags;
"sti %0;" \
"idle;" \
: \
: "d" (irq_flags) \
: "d" (bfin_irq_flags) \
)

#ifdef CONFIG_DEBUG_HWERR
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/blackfin/mach-common/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions trunk/arch/blackfin/mach-common/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -1048,15 +1048,15 @@ 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();
/* Therefore it's better to setup IARs before interrupts enabled */
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;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/blackfin/mach-common/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7a4932a

Please sign in to comment.