Those functions call watchdog_setup() and watchdog_setup_pretimeout(), which
internally do a similar check against the static variables watchdog_timeout and
watchdog_pretimeout. The second check is not useful.
if (MANAGER_IS_USER(m))
return;
- if (m->watchdog[t] == timeout)
- return;
-
if (m->watchdog_overridden[t] == USEC_INFINITY) {
if (t == WATCHDOG_RUNTIME)
(void) watchdog_setup(timeout);
if (MANAGER_IS_USER(m))
return;
- if (m->watchdog_overridden[t] == timeout)
- return;
-
usec = timeout == USEC_INFINITY ? m->watchdog[t] : timeout;
if (t == WATCHDOG_RUNTIME)
(void) watchdog_setup(usec);