diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-20 13:22:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-20 13:22:12 -0500 |
commit | 897aea303fec0c24b2a21b8e29f45dc73a234555 (patch) | |
tree | 511f235fa422163b7a1c8bc58b4d65bd245ec5c8 /include/linux/kernel.h | |
parent | 9451ee2d17e6b4bfbc5871f3c86ea744581b0413 (diff) | |
parent | b71d47c14fba6270c0b5a0d56639bf042017025b (diff) |
Merge branch 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core debug changes from Ingo Molnar:
"Currently there are two methods to set the panic_timeout: via
'panic=X' boot commandline option, or via /proc/sys/kernel/panic.
This tree adds a third panic_timeout configuration method:
configuration via Kconfig, via CONFIG_PANIC_TIMEOUT=X - useful to
distros that generally want their kernel defaults to come with the
.config.
CONFIG_PANIC_TIMEOUT defaults to 0, which was the previous default
value of panic_timeout.
Doing that unearthed a few arch trickeries regarding arch-special
panic_timeout values and related complications - hopefully all
resolved to the satisfaction of everyone"
* 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
powerpc: Clean up panic_timeout usage
MIPS: Remove panic_timeout settings
panic: Make panic_timeout configurable
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index ecb87544cc5d..2aa3d4b000e6 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -394,6 +394,15 @@ extern int panic_on_oops; | |||
394 | extern int panic_on_unrecovered_nmi; | 394 | extern int panic_on_unrecovered_nmi; |
395 | extern int panic_on_io_nmi; | 395 | extern int panic_on_io_nmi; |
396 | extern int sysctl_panic_on_stackoverflow; | 396 | extern int sysctl_panic_on_stackoverflow; |
397 | /* | ||
398 | * Only to be used by arch init code. If the user over-wrote the default | ||
399 | * CONFIG_PANIC_TIMEOUT, honor it. | ||
400 | */ | ||
401 | static inline void set_arch_panic_timeout(int timeout, int arch_default_timeout) | ||
402 | { | ||
403 | if (panic_timeout == arch_default_timeout) | ||
404 | panic_timeout = timeout; | ||
405 | } | ||
397 | extern const char *print_tainted(void); | 406 | extern const char *print_tainted(void); |
398 | enum lockdep_ok { | 407 | enum lockdep_ok { |
399 | LOCKDEP_STILL_OK, | 408 | LOCKDEP_STILL_OK, |