mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
watchdog: stop wdd when watchdog hw running in reboot_notifier
In watchdog_reboot_notifier, wdd should be stopped when the device is in hw_running state Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210114082651.17162-1-qiang.zhao@nxp.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
committed by
Wim Van Sebroeck
parent
fbf376056d
commit
ac288a7b1a
@@ -158,7 +158,7 @@ static int watchdog_reboot_notifier(struct notifier_block *nb,
|
|||||||
|
|
||||||
wdd = container_of(nb, struct watchdog_device, reboot_nb);
|
wdd = container_of(nb, struct watchdog_device, reboot_nb);
|
||||||
if (code == SYS_DOWN || code == SYS_HALT) {
|
if (code == SYS_DOWN || code == SYS_HALT) {
|
||||||
if (watchdog_active(wdd)) {
|
if (watchdog_active(wdd) || watchdog_hw_running(wdd)) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = wdd->ops->stop(wdd);
|
ret = wdd->ops->stop(wdd);
|
||||||
|
Reference in New Issue
Block a user