Add build option to to set the default panic timeout.
authorArve Hjønnevåg <arve@android.com>
Tue, 8 May 2007 08:39:13 +0000 (15:39 +0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:08:39 +0000 (09:08 -0700)
init/Kconfig
kernel/panic.c

index ebafac4231eeff15883809419e6df0c211b90e1a..2c6453dfc4041c8e48329997a3bb32f0894b2d53 100644 (file)
@@ -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
index 69231670eb952357809488fa58cffef5596e9c63..5578d0adc275168a377706613e21a0d630b29c17 100644 (file)
@@ -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);