From: Aaro Koskinen Date: Wed, 9 Mar 2016 20:08:42 +0000 (+0200) Subject: MIPS: panic immediately when panic_on_oops X-Git-Tag: v4.14-rc1~3097^2~263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99a7a234c890177c4d4f2b0fb02317ef19c364a2;p=platform%2Fkernel%2Flinux-rpi.git 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 Cc: James E.J. Bottomley Cc: Helge Deller 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 --- diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 3cbd987..82c2fcf 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);