drivers/timers/watchdog.c: Support auto-monitor service

This commit is contained in:
Gregory Nutt
2019-01-27 10:03:16 -06:00
parent 964f0ab304
commit dfee842074
2 changed files with 205 additions and 25 deletions
+34
View File
@@ -255,6 +255,40 @@ config WATCHDOG_DEVPATH
string "Watchdog Device Path"
default "/dev/watchdog0"
config WATCHDOG_AUTOMONITOR
bool "Auto-monitor"
---help---
The auto-monitor provides an OS-internal mechanism for automatically
start and repeatly reset the counting after the watchdog is register.
if WATCHDOG_AUTOMONITOR
config WATCHDOG_AUTOMONITOR_TIMEOUT
int "Auto-monitor reset timeout(second)"
default 60
choice
prompt "Auto-monitor keepalive by"
default WATCHDOG_AUTOMONITOR_BY_TIMER
config WATCHDOG_AUTOMONITOR_BY_CAPTURE
bool "Capture callback"
config WATCHDOG_AUTOMONITOR_BY_TIMER
bool "Timer callback"
config WATCHDOG_AUTOMONITOR_BY_WORKER
bool "Worker callback"
depends on SCHED_WORKQUEUE
config WATCHDOG_AUTOMONITOR_BY_IDLE
bool "Idle callback"
depends on PM
endchoice
endif # WATCHDOG_AUTOMONITOR
endif # WATCHDOG
config TIMERS_CS2100CP
+171 -25
View File
File diff suppressed because it is too large Load Diff