Add build option to to set the default panic timeout.
This commit is contained in:
parent
aca50f226d
commit
4f948f64ab
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue