]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: add support for adjusting last known HW keepalive time
authorTero Kristo <t-kristo@ti.com>
Fri, 17 Jul 2020 13:29:56 +0000 (16:29 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:43:02 +0000 (18:43 +0200)
commit95a22f68e8e0f22ef621f977f8a9015d884fa41e
treef80b4b40eea485aa70c4d6cf400be986dafa92af
parent5ac67906a72a2d40884638cd607dcf557475e1ee
watchdog: add support for adjusting last known HW keepalive time

Certain watchdogs require the watchdog only to be pinged within a
specific time window, pinging too early or too late cause the watchdog
to fire. In cases where this sort of watchdog has been started before
kernel comes up, we must adjust the watchdog keepalive window to match
the actually running timer, so add a new driver API for this purpose.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200717132958.14304-3-t-kristo@ti.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Documentation/watchdog/watchdog-kernel-api.rst
drivers/watchdog/watchdog_dev.c
include/linux/watchdog.h