lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT
PATCH 1/1 lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT
PANIC_TIMEOUT can also be controlled with the panic= kernel command line option, so let's reference it in the Kconfig help. This option is already documented in kernel-parameters.txt.
--- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/Kconfig.debug +2 -1
@@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT Set the timeout value (in seconds) until a reboot occurs when the kernel panics. If n = 0, then we wait forever. A timeout value n > 0 will wait n seconds before rebooting, while a timeout - value n < 0 will reboot immediately. + value n < 0 will reboot immediately. The kernel command line + option panic= may be used to override this option. config LOCKUP_DETECTOR bool
Signature · 1 line
2.45.1
Brian Masney <[email protected]> writes:
Hello Brian,
Quoted 14 lines
PANIC_TIMEOUTcan also be controlled with the panic= kernel command line option, so let's reference it in theKconfighelp. This option is already documented in kernel-parameters.txt.Signed-off-by Brian Masney <[email protected]>--- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/Kconfig.debug +0
-0
lib/Kconfig.debug config PANIC_TIMEOUT · line 1048
Quoted 7 lines
lib/Kconfig.debug +2
-1@@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT Set the timeout value (in seconds) until a reboot occurs when the kernel panics. If n = 0, then we wait forever. A timeout value n > 0 will wait n seconds before rebooting, while a timeout - value n < 0 will reboot immediately. + value n < 0 will reboot immediately. The kernel command line + option panic= may be used to override this option.
Thanks for adding this, I wasn't aware of that panic= cmdline before.
Maybe it could also be mentioned that the timeout can be overriden by user-space using the /proc/sys/kernel/panic sysfs entry too ?
Regardless, the patch looks good to me.
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
Quoted 28 lines · Javier Martinez Canillas
Brian Masney <[email protected]> writes:
Hello Brian,
Quoted 14 lines
PANIC_TIMEOUTcan also be controlled with the panic= kernel command line option, so let's reference it in theKconfighelp. This option is already documented in kernel-parameters.txt.Signed-off-by Brian Masney <[email protected]>--- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/Kconfig.debug +0
-0lib/Kconfig.debug config PANIC_TIMEOUT · line 1048
Quoted 7 lines
lib/Kconfig.debug +2
-1@@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT Set the timeout value (in seconds) until a reboot occurs when the kernel panics. If n = 0, then we wait forever. A timeout value n > 0 will wait n seconds before rebooting, while a timeout - value n < 0 will reboot immediately. + value n < 0 will reboot immediately. The kernel command line + option panic= may be used to override this option.Thanks for adding this, I wasn't aware of that panic= cmdline before.
Quoted 6 lines
Maybe it could also be mentioned that the timeout can be overriden by user-space using the
/proc/sys/kernel/panicsysfs entry too ?Regardless, the patch looks good to me.
Reviewed-by Javier Martinez Canillas <[email protected]>
I can add that. I'll wait a few days send a v2 to see if there's any other feedback.
Brian