From: Arve Hjønnevåg Date: Tue, 8 May 2007 08:39:13 +0000 (+0700) Subject: Add build option to to set the default panic timeout. X-Git-Tag: firefly_0821_release~4090^2~902 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4f948f64ab7180b482b159993c79fabd2d1a7172;p=firefly-linux-kernel-4.4.55.git Add build option to to set the default panic timeout. --- diff --git a/init/Kconfig b/init/Kconfig index 2d9b83104dcf..d6660c5b4d76 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1251,6 +1251,12 @@ config HOTPLUG config HAVE_PCSPKR_PLATFORM bool +config PANIC_TIMEOUT + int "Default panic timeout" + default 0 + help + Set default panic timeout. + menuconfig EXPERT bool "Configure standard kernel features (expert users)" # Unhide debug options, to make the on-by-default options visible diff --git a/kernel/panic.c b/kernel/panic.c index 167ec097ce8b..1daccb2ffa03 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -32,7 +32,10 @@ static int pause_on_oops; static int pause_on_oops_flag; static DEFINE_SPINLOCK(pause_on_oops_lock); -int panic_timeout; +#ifndef CONFIG_PANIC_TIMEOUT +#define CONFIG_PANIC_TIMEOUT 0 +#endif +int panic_timeout = CONFIG_PANIC_TIMEOUT; EXPORT_SYMBOL_GPL(panic_timeout); ATOMIC_NOTIFIER_HEAD(panic_notifier_list);