init/main.c Enable watchdog_thresh control from kernel line
PATCH 1/1 init/main.c Enable watchdog_thresh control from kernel line
Both graphics and serial consoels are exposed to hard lockups when handling a large amount of messaging. The kernel watchdog_thresh parameter up to now has not been available to be set on the kernel line for early boot.
This patch allows the setting of watchdog_thresh to be increased when needed to avoid the hard lockups in the console code.
--- init/main.c | 9 +++++++++ 1 file changed, 9 insertions(+)
init/main.c +9 -0
@@ -977,6 +977,15 @@ static int __init set_debug_rodata(char *str)__setup ("rodata=" , set_debug_rodata);#endif +static int __init +is_watchdog_thresh_setup (char *str) +{ +get_option (&str, &watchdog_thresh); +return 1 ; +} +__setup ("watchdog_thresh=" , is_watchdog_thresh_setup); + +#ifdef CONFIG_STRICT_KERNEL_RWX static void mark_readonly (void ) {
Signature · 1 line
1.8.3.1
Hi,
Quoted 1 line · Laurence Oberman
Both graphics and serial consoels are exposed to hard lockups
consoles
Quoted 7 lines
when handling a large amount of messaging. The kernel
watchdog_threshparameter up to now has not been available to be set on the kernel line for early boot.
This patch allows the setting ofwatchdog_threshto be increased when needed to avoid the hard lockups in the console code.Signed-off-by Laurence Oberman <[email protected]>
Please add corresponding documentation to the Documentation/admin-guide/kernel-parameters.txt file.
Thanks.
Quoted 25 lines
--- init/main.c | 9 +++++++++ 1 file changed, 9 insertions(+)init/main.c +9
-0@@ -977,6 +977,15 @@ static int __init set_debug_rodata(char *str)__setup ("rodata=" , set_debug_rodata);#endif +static int __init +is_watchdog_thresh_setup (char *str) +{ +get_option (&str, &watchdog_thresh); +return 1 ; +} +__setup ("watchdog_thresh=" , is_watchdog_thresh_setup); + +#ifdef CONFIG_STRICT_KERNEL_RWX static void mark_readonly (void ) {
Signature · 1 line
~Randy