diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/traps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index b7517e3abc85..01eff7e609e8 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -364,7 +364,7 @@ static int regs_to_trapnr(struct pt_regs *regs) | |||
364 | return (regs->cp0_cause >> 2) & 0x1f; | 364 | return (regs->cp0_cause >> 2) & 0x1f; |
365 | } | 365 | } |
366 | 366 | ||
367 | static DEFINE_SPINLOCK(die_lock); | 367 | static DEFINE_RAW_SPINLOCK(die_lock); |
368 | 368 | ||
369 | void __noreturn die(const char *str, struct pt_regs *regs) | 369 | void __noreturn die(const char *str, struct pt_regs *regs) |
370 | { | 370 | { |
@@ -378,7 +378,7 @@ void __noreturn die(const char *str, struct pt_regs *regs) | |||
378 | sig = 0; | 378 | sig = 0; |
379 | 379 | ||
380 | console_verbose(); | 380 | console_verbose(); |
381 | spin_lock_irq(&die_lock); | 381 | raw_spin_lock_irq(&die_lock); |
382 | bust_spinlocks(1); | 382 | bust_spinlocks(1); |
383 | #ifdef CONFIG_MIPS_MT_SMTC | 383 | #ifdef CONFIG_MIPS_MT_SMTC |
384 | mips_mt_regdump(dvpret); | 384 | mips_mt_regdump(dvpret); |
@@ -387,7 +387,7 @@ void __noreturn die(const char *str, struct pt_regs *regs) | |||
387 | printk("%s[#%d]:\n", str, ++die_counter); | 387 | printk("%s[#%d]:\n", str, ++die_counter); |
388 | show_registers(regs); | 388 | show_registers(regs); |
389 | add_taint(TAINT_DIE); | 389 | add_taint(TAINT_DIE); |
390 | spin_unlock_irq(&die_lock); | 390 | raw_spin_unlock_irq(&die_lock); |
391 | 391 | ||
392 | if (in_interrupt()) | 392 | if (in_interrupt()) |
393 | panic("Fatal exception in interrupt"); | 393 | panic("Fatal exception in interrupt"); |