summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2016-03-09 22:08:42 +0200
committerRalf Baechle <ralf@linux-mips.org>2016-05-13 14:01:44 +0200
commit99a7a234c890177c4d4f2b0fb02317ef19c364a2 (patch)
tree7089d213b3429d4ac8ef100fb8fec78d8dc92a61 /arch/mips/kernel/traps.c
parent2ab71a02c56f8244ac611b5c6e6603c6fe83b966 (diff)
downloadlinux-stable-99a7a234c890177c4d4f2b0fb02317ef19c364a2.tar.gz
linux-stable-99a7a234c890177c4d4f2b0fb02317ef19c364a2.tar.bz2
linux-stable-99a7a234c890177c4d4f2b0fb02317ef19c364a2.zip
MIPS: panic immediately when panic_on_oops
MIPS wants to sleep 5 seconds before panicking when panic_on_oops is set, with no apparent reason. Remove this feature, since some users may want their systems to fail as quickly as possible. Users who want to delay reboot after panic can use PANIC_TIMEOUT. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: James E.J. Bottomley <jejb@parisc-linux.org> Cc: Helge Deller <deller@gmx.de> Cc: linux-mips@linux-mips.org Cc: linux-parisc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/12845/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 3cbd98729ab1..82c2fcf7e585 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -399,11 +399,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
if (in_interrupt())
panic("Fatal exception in interrupt");
- if (panic_on_oops) {
- printk(KERN_EMERG "Fatal exception: panic in 5 seconds");
- ssleep(5);
+ if (panic_on_oops)
panic("Fatal exception");
- }
if (regs && kexec_should_crash(current))
crash_kexec(regs);