mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Add build option to to set the default panic timeout.
This commit is contained in:
parent
07f174eba0
commit
141e799401
2 changed files with 10 additions and 1 deletions
|
@ -953,6 +953,12 @@ config SYSCTL
|
|||
config ANON_INODES
|
||||
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
|
||||
|
|
|
@ -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;
|
||||
EXPORT_SYMBOL_GPL(panic_timeout);
|
||||
|
||||
ATOMIC_NOTIFIER_HEAD(panic_notifier_list);
|
||||
|
|
Loading…
Reference in a new issue