projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d35c83
)
Add build option to to set the default panic timeout.
author
Arve Hjønnevåg
<arve@android.com>
Tue, 8 May 2007 08:39:13 +0000
(15:39 +0700)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:08:39 +0000
(09:08 -0700)
init/Kconfig
patch
|
blob
|
history
kernel/panic.c
patch
|
blob
|
history
diff --git
a/init/Kconfig
b/init/Kconfig
index ebafac4231eeff15883809419e6df0c211b90e1a..2c6453dfc4041c8e48329997a3bb32f0894b2d53 100644
(file)
--- a/
init/Kconfig
+++ b/
init/Kconfig
@@
-907,6
+907,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)"
help
diff --git
a/kernel/panic.c
b/kernel/panic.c
index 69231670eb952357809488fa58cffef5596e9c63..5578d0adc275168a377706613e21a0d630b29c17 100644
(file)
--- 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);