Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182127
b: refs/heads/master
c: 32baba2
h: refs/heads/master
i:
  182125: e43be24
  182123: b8e06f1
  182119: dbcf4fd
  182111: 6fc68cf
v: v3
  • Loading branch information
Ralf Baechle committed Feb 27, 2010
1 parent c635d8b commit 4f3f461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: d8d607d59e78a865e0b55c60e84412519a83022c
refs/heads/master: 32baba2fb7149ac262be1dca39291b55d846a075
10 changes: 5 additions & 5 deletions trunk/arch/mips/dec/kn01-berr.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@
* There is no default value -- it has to be initialized.
*/
u16 cached_kn01_csr;
static DEFINE_SPINLOCK(kn01_lock);
static DEFINE_RAW_SPINLOCK(kn01_lock);


static inline void dec_kn01_be_ack(void)
{
volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR);
unsigned long flags;

spin_lock_irqsave(&kn01_lock, flags);
raw_spin_lock_irqsave(&kn01_lock, flags);

*csr = cached_kn01_csr | KN01_CSR_MEMERR; /* Clear bus IRQ. */
iob();

spin_unlock_irqrestore(&kn01_lock, flags);
raw_spin_unlock_irqrestore(&kn01_lock, flags);
}

static int dec_kn01_be_backend(struct pt_regs *regs, int is_fixup, int invoker)
Expand Down Expand Up @@ -182,7 +182,7 @@ void __init dec_kn01_be_init(void)
volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR);
unsigned long flags;

spin_lock_irqsave(&kn01_lock, flags);
raw_spin_lock_irqsave(&kn01_lock, flags);

/* Preset write-only bits of the Control Register cache. */
cached_kn01_csr = *csr;
Expand All @@ -194,7 +194,7 @@ void __init dec_kn01_be_init(void)
*csr = cached_kn01_csr;
iob();

spin_unlock_irqrestore(&kn01_lock, flags);
raw_spin_unlock_irqrestore(&kn01_lock, flags);

/* Clear any leftover errors from the firmware. */
dec_kn01_be_ack();
Expand Down

0 comments on commit 4f3f461

Please sign in to comment.