watchdog: core: add restart handler support
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Mon, 16 Nov 2015 17:27:59 +0000 (12:27 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 13 Dec 2015 14:27:10 +0000 (15:27 +0100)
commit2165bf524da5f5e496d1cdb8c5afae1345ecce1e
tree75a24ea774d08021e1c45e201ffc9f7a164ca661
parent1f32f83e5d81c1e99a1c16366e71d5867cd1e364
watchdog: core: add restart handler support

Many watchdog drivers implement the same code to register a restart
handler. This patch provides a generic way to set such a function.

The patch adds a new restart watchdog operation. If a restart priority
greater than 0 is needed, the driver can call
watchdog_set_restart_priority to set it.

Suggested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
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_core.c
include/linux/watchdog.h