Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32936
b: refs/heads/master
c: cea6a4b
h: refs/heads/master
v: v3
  • Loading branch information
Horms authored and Linus Torvalds committed Jul 31, 2006
1 parent 7379cad commit 8882836
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 29 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: b8bdb460b7ecf08a4fed6e8b5b6b3fe874587aaa
refs/heads/master: cea6a4ba8acfba6f59cc9ed71e0d05cb770b9d9c
7 changes: 2 additions & 5 deletions trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,8 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err)
bust_spinlocks(0);
spin_unlock_irq(&die_lock);

if (panic_on_oops) {
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
panic("Fatal exception");
}
if (panic_on_oops)
panic("Fatal exception: panic_on_oops");

do_exit(SIGSEGV);
}
Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/i386/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,9 @@ void die(const char * str, struct pt_regs * regs, long err)
if (in_interrupt())
panic("Fatal exception in interrupt");

if (panic_on_oops) {
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
panic("Fatal exception");
}
if (panic_on_oops)
panic("Fatal exception: panic_on_oops");

oops_exit();
do_exit(SIGSEGV);
}
Expand Down
7 changes: 2 additions & 5 deletions trunk/arch/ia64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,8 @@ die (const char *str, struct pt_regs *regs, long err)
die.lock_owner = -1;
spin_unlock_irq(&die.lock);

if (panic_on_oops) {
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
panic("Fatal exception");
}
if (panic_on_oops)
panic("Fatal exception: panic_on_oops");

do_exit(SIGSEGV);
}
Expand Down
10 changes: 3 additions & 7 deletions trunk/arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,9 @@ int die(const char *str, struct pt_regs *regs, long err)
if (in_interrupt())
panic("Fatal exception in interrupt");

if (panic_on_oops) {
#ifdef CONFIG_PPC64
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
#endif
panic("Fatal exception");
}
if (panic_on_oops)
panic("Fatal exception: panic_on_oops");

do_exit(err);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void __kprobes oops_end(unsigned long flags)
/* Nest count reaches zero, release the lock. */
spin_unlock_irqrestore(&die_lock, flags);
if (panic_on_oops)
panic("Oops");
panic("Fatal exception: panic_on_oops");
}

void __kprobes __die(const char * str, struct pt_regs * regs, long err)
Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/xtensa/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,9 @@ void die(const char * str, struct pt_regs * regs, long err)
if (in_interrupt())
panic("Fatal exception in interrupt");

if (panic_on_oops) {
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
panic("Fatal exception");
}
if (panic_on_oops)
panic("Fatal exception: panic_on_oops");

do_exit(err);
}

Expand Down

0 comments on commit 8882836

Please sign in to comment.