mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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
This commit is contained in:
commit
897aea303f
13 changed files with 25 additions and 16 deletions
|
@ -394,6 +394,15 @@ extern int panic_on_oops;
|
|||
extern int panic_on_unrecovered_nmi;
|
||||
extern int panic_on_io_nmi;
|
||||
extern int sysctl_panic_on_stackoverflow;
|
||||
/*
|
||||
* Only to be used by arch init code. If the user over-wrote the default
|
||||
* CONFIG_PANIC_TIMEOUT, honor it.
|
||||
*/
|
||||
static inline void set_arch_panic_timeout(int timeout, int arch_default_timeout)
|
||||
{
|
||||
if (panic_timeout == arch_default_timeout)
|
||||
panic_timeout = timeout;
|
||||
}
|
||||
extern const char *print_tainted(void);
|
||||
enum lockdep_ok {
|
||||
LOCKDEP_STILL_OK,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue