]> 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)
commitcef9572e9af373cefd1adc9e771e89670da5da3c
treef80b4b40eea485aa70c4d6cf400be986dafa92af
parentfbbe35dfcf949f4d6cf987648e52a85fc0c2a23a
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