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:
Nick Hibma 2007-03-13 15:54:26 +00:00
parent 0585c315b7
commit 07cc71882a

View file

@ -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;