mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
Add build option to to set the default panic timeout.
This commit is contained in:
committed by
Colin Cross
parent
a1643c545a
commit
37eb616c13
@@ -790,6 +790,12 @@ config SYSCTL
|
||||
config ANON_INODES
|
||||
bool
|
||||
|
||||
config PANIC_TIMEOUT
|
||||
int "Default panic timeout"
|
||||
default 0
|
||||
help
|
||||
Set default panic timeout.
|
||||
|
||||
menuconfig EMBEDDED
|
||||
bool "Configure standard kernel features (for small systems)"
|
||||
help
|
||||
|
||||
@@ -33,7 +33,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;
|
||||
|
||||
ATOMIC_NOTIFIER_HEAD(panic_notifier_list);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user