diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /arch/mips/dec | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'arch/mips/dec')
-rw-r--r-- | arch/mips/dec/kn01-berr.c | 10 | ||||
-rw-r--r-- | arch/mips/dec/prom/locore.S | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/mips/dec/kn01-berr.c b/arch/mips/dec/kn01-berr.c index b0dc6d53edd6..94d23b4a7dc3 100644 --- a/arch/mips/dec/kn01-berr.c +++ b/arch/mips/dec/kn01-berr.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * There is no default value -- it has to be initialized. | 46 | * There is no default value -- it has to be initialized. |
47 | */ | 47 | */ |
48 | u16 cached_kn01_csr; | 48 | u16 cached_kn01_csr; |
49 | DEFINE_SPINLOCK(kn01_lock); | 49 | static DEFINE_RAW_SPINLOCK(kn01_lock); |
50 | 50 | ||
51 | 51 | ||
52 | static inline void dec_kn01_be_ack(void) | 52 | static inline void dec_kn01_be_ack(void) |
@@ -54,12 +54,12 @@ static inline void dec_kn01_be_ack(void) | |||
54 | volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR); | 54 | volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR); |
55 | unsigned long flags; | 55 | unsigned long flags; |
56 | 56 | ||
57 | spin_lock_irqsave(&kn01_lock, flags); | 57 | raw_spin_lock_irqsave(&kn01_lock, flags); |
58 | 58 | ||
59 | *csr = cached_kn01_csr | KN01_CSR_MEMERR; /* Clear bus IRQ. */ | 59 | *csr = cached_kn01_csr | KN01_CSR_MEMERR; /* Clear bus IRQ. */ |
60 | iob(); | 60 | iob(); |
61 | 61 | ||
62 | spin_unlock_irqrestore(&kn01_lock, flags); | 62 | raw_spin_unlock_irqrestore(&kn01_lock, flags); |
63 | } | 63 | } |
64 | 64 | ||
65 | static int dec_kn01_be_backend(struct pt_regs *regs, int is_fixup, int invoker) | 65 | static int dec_kn01_be_backend(struct pt_regs *regs, int is_fixup, int invoker) |
@@ -182,7 +182,7 @@ void __init dec_kn01_be_init(void) | |||
182 | volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR); | 182 | volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR); |
183 | unsigned long flags; | 183 | unsigned long flags; |
184 | 184 | ||
185 | spin_lock_irqsave(&kn01_lock, flags); | 185 | raw_spin_lock_irqsave(&kn01_lock, flags); |
186 | 186 | ||
187 | /* Preset write-only bits of the Control Register cache. */ | 187 | /* Preset write-only bits of the Control Register cache. */ |
188 | cached_kn01_csr = *csr; | 188 | cached_kn01_csr = *csr; |
@@ -194,7 +194,7 @@ void __init dec_kn01_be_init(void) | |||
194 | *csr = cached_kn01_csr; | 194 | *csr = cached_kn01_csr; |
195 | iob(); | 195 | iob(); |
196 | 196 | ||
197 | spin_unlock_irqrestore(&kn01_lock, flags); | 197 | raw_spin_unlock_irqrestore(&kn01_lock, flags); |
198 | 198 | ||
199 | /* Clear any leftover errors from the firmware. */ | 199 | /* Clear any leftover errors from the firmware. */ |
200 | dec_kn01_be_ack(); | 200 | dec_kn01_be_ack(); |
diff --git a/arch/mips/dec/prom/locore.S b/arch/mips/dec/prom/locore.S index d9acdcefee81..f72b5741025f 100644 --- a/arch/mips/dec/prom/locore.S +++ b/arch/mips/dec/prom/locore.S | |||
@@ -27,4 +27,3 @@ NESTED(genexcept_early, 0, sp) | |||
27 | jr k0 | 27 | jr k0 |
28 | rfe | 28 | rfe |
29 | END(genexcept_early) | 29 | END(genexcept_early) |
30 | |||