diff options
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, |