Add build option to to set the default panic timeout.

This commit is contained in:
Arve Hjønnevåg 2007-05-08 15:39:13 +07:00
parent aca50f226d
commit 4f948f64ab
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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);