mbox series

[RFC,0/2] watchdog: Provide user control over WDOG_STOP_ON_REBOOT

Message ID 20200121162145.166334-1-dima@arista.com (mailing list archive)
Headers show
Series watchdog: Provide user control over WDOG_STOP_ON_REBOOT | expand

Message

Dmitry Safonov Jan. 21, 2020, 4:21 p.m. UTC
Add WDIOS_RUN_ON_REBOOT and WDIOS_STOP_ON_REBOOT to control the
watchdog's behavior over reboot.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: linux-watchdog@vger.kernel.org

Dmitry Safonov (2):
  watchdog: Check WDOG_STOP_ON_REBOOT in reboot notifier
  watchdog/uapi: Add WDIOS_{RUN,STOP}_ON_REBOOT

 drivers/watchdog/watchdog_dev.c | 29 ++++++++++++++++++++---------
 include/linux/watchdog.h        |  6 ++++++
 include/uapi/linux/watchdog.h   |  3 ++-
 3 files changed, 28 insertions(+), 10 deletions(-)