Skip to content

Commit 32baba2

Browse files
committed
MIPS: DEC: Convert KN01 lock to raw spinlock.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent d8d607d commit 32baba2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎arch/mips/dec/kn01-berr.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@
4646
* There is no default value -- it has to be initialized.
4747
*/
4848
u16 cached_kn01_csr;
49-
static DEFINE_SPINLOCK(kn01_lock);
49+
static DEFINE_RAW_SPINLOCK(kn01_lock);
5050

5151

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

57-
spin_lock_irqsave(&kn01_lock, flags);
57+
raw_spin_lock_irqsave(&kn01_lock, flags);
5858

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

62-
spin_unlock_irqrestore(&kn01_lock, flags);
62+
raw_spin_unlock_irqrestore(&kn01_lock, flags);
6363
}
6464

6565
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)
182182
volatile u16 *csr = (void *)CKSEG1ADDR(KN01_SLOT_BASE + KN01_CSR);
183183
unsigned long flags;
184184

185-
spin_lock_irqsave(&kn01_lock, flags);
185+
raw_spin_lock_irqsave(&kn01_lock, flags);
186186

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

197-
spin_unlock_irqrestore(&kn01_lock, flags);
197+
raw_spin_unlock_irqrestore(&kn01_lock, flags);
198198

199199
/* Clear any leftover errors from the firmware. */
200200
dec_kn01_be_ack();

0 commit comments

Comments
 (0)