diff options
author | Arve Hjønnevåg <arve@android.com> | 2007-05-08 15:39:13 +0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-04-09 13:53:08 -0700 |
commit | 141e7994016a66378b1371db14e859039d692ce3 (patch) | |
tree | 427c20c8003b3f632c1f47ec001028864a113449 /kernel | |
parent | 07f174eba06628bac59377b5a5ed282a660d3204 (diff) |
Add build option to to set the default panic timeout.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/panic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 80aed44e345..d2cbccb207c 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -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); |