Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264293
b: refs/heads/master
c: 4d85f6a
h: refs/heads/master
i:
  264291: 7fe0338
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Sep 21, 2011
1 parent c37d2e7 commit a417600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 49de830ad7b94d05f6dbfbae97a03f80169a7462
refs/heads/master: 4d85f6afa43d366868fdaa19595722309e4843f6
6 changes: 3 additions & 3 deletions trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static int regs_to_trapnr(struct pt_regs *regs)
return (regs->cp0_cause >> 2) & 0x1f;
}

static DEFINE_SPINLOCK(die_lock);
static DEFINE_RAW_SPINLOCK(die_lock);

void __noreturn die(const char *str, struct pt_regs *regs)
{
Expand All @@ -378,7 +378,7 @@ void __noreturn die(const char *str, struct pt_regs *regs)
sig = 0;

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);
Expand All @@ -387,7 +387,7 @@ void __noreturn die(const char *str, 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");
Expand Down

0 comments on commit a417600

Please sign in to comment.