Add build option to to set the default panic timeout.
This commit is contained in:
committed by
Colin Cross
parent
2d35c8339d
commit
ac7df7d13e
@@ -907,6 +907,12 @@ config SYSCTL
|
|||||||
config ANON_INODES
|
config ANON_INODES
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config PANIC_TIMEOUT
|
||||||
|
int "Default panic timeout"
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Set default panic timeout.
|
||||||
|
|
||||||
menuconfig EXPERT
|
menuconfig EXPERT
|
||||||
bool "Configure standard kernel features (expert users)"
|
bool "Configure standard kernel features (expert users)"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ static int pause_on_oops;
|
|||||||
static int pause_on_oops_flag;
|
static int pause_on_oops_flag;
|
||||||
static DEFINE_SPINLOCK(pause_on_oops_lock);
|
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);
|
EXPORT_SYMBOL_GPL(panic_timeout);
|
||||||
|
|
||||||
ATOMIC_NOTIFIER_HEAD(panic_notifier_list);
|
ATOMIC_NOTIFIER_HEAD(panic_notifier_list);
|
||||||
|
|||||||
Reference in New Issue
Block a user