mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In one of the previous commits I accidentally removed the enabling of the
watchdog chip. Noticed by: Mike Tancsa Tested by: Mike Tancsa MFC after: 1 week
This commit is contained in:
parent
0585c315b7
commit
07cc71882a
1 changed files with 4 additions and 1 deletions
|
|
@ -183,8 +183,11 @@ ichwd_event(void *arg, unsigned int cmd, int *error)
|
|||
timeout = ((uint64_t)1 << cmd) / ICHWD_TICK;
|
||||
if (cmd > 0 && cmd <= 63
|
||||
&& timeout >= ICHWD_MIN_TIMEOUT && timeout <= ICHWD_MAX_TIMEOUT) {
|
||||
if (timeout != sc->timeout)
|
||||
if (timeout != sc->timeout) {
|
||||
if (!sc->active)
|
||||
ichwd_tmr_enable(sc);
|
||||
ichwd_tmr_set(sc, timeout);
|
||||
}
|
||||
|
||||
ichwd_tmr_reload(sc);
|
||||
*error = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue