watchdog: Introduce WDOG_HW_RUNNING flag
authorGuenter Roeck <linux@roeck-us.net>
Sun, 28 Feb 2016 21:12:16 +0000 (13:12 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 16 Mar 2016 20:11:15 +0000 (21:11 +0100)
commitee142889e32f564f9b5e57b68b06693ec5473074
tree69afe4a8324087bbd96636048f9b306d5a84eb28
parent664a39236e718f9f03fa73fc01006da9ced04efc
watchdog: Introduce WDOG_HW_RUNNING flag

The WDOG_HW_RUNNING flag is expected to be set by watchdog drivers if
the hardware watchdog is running. If the flag is set, the watchdog
subsystem will ping the watchdog even if the watchdog device is closed.

The watchdog driver stop function is now optional and may be omitted
if the watchdog can not be stopped. If stopping the watchdog is not
possible but the driver implements a stop function, it is responsible
to set the WDOG_HW_RUNNING flag in its stop function.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Documentation/watchdog/watchdog-kernel-api.txt
drivers/watchdog/watchdog_dev.c
include/linux/watchdog.h