From 07cc71882a66e02c2a2637b59e42237b520203f4 Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Tue, 13 Mar 2007 15:54:26 +0000 Subject: [PATCH] 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 --- sys/dev/ichwd/ichwd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c index f878d39f933..a109f807822 100644 --- a/sys/dev/ichwd/ichwd.c +++ b/sys/dev/ichwd/ichwd.c @@ -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;