watchdog: Change WATCHDOG_AUTOMONITOR_PING_INTERVAL default to zero
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
03f45a124a
commit
665e05ec48
@ -400,13 +400,12 @@ if !WATCHDOG_AUTOMONITOR_BY_CAPTURE && !WATCHDOG_AUTOMONITOR_BY_IDLE
|
|||||||
|
|
||||||
config WATCHDOG_AUTOMONITOR_PING_INTERVAL
|
config WATCHDOG_AUTOMONITOR_PING_INTERVAL
|
||||||
int "Auto-monitor keep a live interval"
|
int "Auto-monitor keep a live interval"
|
||||||
default WATCHDOG_AUTOMONITOR_TIMEOUT
|
range 0 WATCHDOG_AUTOMONITOR_TIMEOUT
|
||||||
range 1 WATCHDOG_AUTOMONITOR_TIMEOUT
|
default 0
|
||||||
---help---
|
---help---
|
||||||
If the interval is same as WATCHDOG_AUTOMONITOR_TIMEOUT
|
If the interval is 0, it will change to (WATCHDOG_AUTOMONITOR_TIMEOUT / 2).
|
||||||
the default value will change to (WATCHDOG_AUTOMONITOR_TIMEOUT / 2).
|
This interval will only be used by auto-monitor in oneshot, timer, wdog or
|
||||||
This interval will only be used by auto-monitor by Worker callback
|
worker case.
|
||||||
or by Timer callback.
|
|
||||||
|
|
||||||
endif # !WATCHDOG_AUTOMONITOR_BY_CAPTURE && !WATCHDOG_AUTOMONITOR_BY_IDLE
|
endif # !WATCHDOG_AUTOMONITOR_BY_CAPTURE && !WATCHDOG_AUTOMONITOR_BY_IDLE
|
||||||
|
|
||||||
|
@ -53,8 +53,7 @@
|
|||||||
(CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT * MSEC_PER_SEC)
|
(CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT * MSEC_PER_SEC)
|
||||||
# if !defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_CAPTURE) && \
|
# if !defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_CAPTURE) && \
|
||||||
!defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_IDLE)
|
!defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_IDLE)
|
||||||
# if CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT == \
|
# if CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL == 0
|
||||||
CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL
|
|
||||||
# define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
|
# define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
|
||||||
(CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL / 2)
|
(CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL / 2)
|
||||||
# else
|
# else
|
||||||
|
Loading…
Reference in New Issue
Block a user