diff options
author | Meng Li <meng.li@windriver.com> | 2023-08-14 12:06:16 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2023-08-19 18:36:19 +0300 |
commit | 486a64b29c5f43a9671713e781779863dda9bbc9 (patch) | |
tree | f620518a4d5fd8a43c516328ecc14d3b66cf6829 /scripts/gdb/linux/interrupts.py | |
parent | 89e5e28e40320c38c0aa67e42032799ba8571ce8 (diff) | |
download | linux-486a64b29c5f43a9671713e781779863dda9bbc9.tar.xz |
watchdog: core: stop watchdog when executing poweroff command
On some platforms, for example, Intel SoC FPGA platform, the watchdog
is started in u-boot, and so kernel will create a timer and work to
keep watchdog alive. But when user executes commands "poweroff" or
"shutdown -h", the system is reset when watchdog triggers timeout even
if WDOG_STOP_ON_REBOOT is set in watchdog driver. The root cause is
that the watchdog is not stopped properly because the SYS_POWER_OFF case
is not supported in notify callback function. So, add this case to stop
watchdog when executing poweroff command.
Signed-off-by: Meng Li <Meng.Li@windriver.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230814090616.1853263-1-Meng.Li@windriver.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions