summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2010-02-22 00:47:45 +0800
committerWu Zhangjin <wuzhangjin@gmail.com>2010-03-10 04:38:45 +0800
commitf892b149b98479d18f78275a7cd36aaa8fb91c72 (patch)
tree82360c626fbc7842d8c03d53fafb58efdab97640
parent7ac72cc54968c4820052f39de5b9b7891f625498 (diff)
downloadlwn-f892b149b98479d18f78275a7cd36aaa8fb91c72.tar.gz
lwn-f892b149b98479d18f78275a7cd36aaa8fb91c72.zip
RT: MIPS: Make the die_lock be raw
Kernel is going to die, the lock must be raw to ensure nobody can preempt it at this urgent time. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
-rw-r--r--arch/mips/kernel/traps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 31b204b26ba0..de6d66a7575b 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -349,7 +349,7 @@ void show_registers(const struct pt_regs *regs)
printk("\n");
}
-static DEFINE_SPINLOCK(die_lock);
+static DEFINE_RAW_SPINLOCK(die_lock);
void __noreturn die(const char * str, const struct pt_regs * regs)
{
@@ -359,7 +359,7 @@ void __noreturn die(const char * str, const struct pt_regs * regs)
#endif /* CONFIG_MIPS_MT_SMTC */
console_verbose();
- spin_lock_irq(&die_lock);
+ raw_spin_lock_irq(&die_lock);
bust_spinlocks(1);
#ifdef CONFIG_MIPS_MT_SMTC
mips_mt_regdump(dvpret);
@@ -367,7 +367,7 @@ void __noreturn die(const char * str, const struct pt_regs * regs)
printk("%s[#%d]:\n", str, ++die_counter);
show_registers(regs);
add_taint(TAINT_DIE);
- spin_unlock_irq(&die_lock);
+ raw_spin_unlock_irq(&die_lock);
if (in_interrupt())
panic("Fatal exception in interrupt");