diff options
| author | Xin LI <delphij@FreeBSD.org> | 2011-09-02 17:06:50 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2011-09-02 17:06:50 +0000 |
| commit | cdd4eea9fca2d4b2edd85e3c29413ab9b0deaa46 (patch) | |
| tree | efa92807876c5fbff852ce2fa79cbbb0c8071052 /sys/dev/ichwd | |
| parent | d1f97f76a596d948f6e61cc0dd67c8a96220ec29 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ichwd')
| -rw-r--r-- | sys/dev/ichwd/ichwd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c index a66826e4c6e4..5d800c963e86 100644 --- a/sys/dev/ichwd/ichwd.c +++ b/sys/dev/ichwd/ichwd.c @@ -402,11 +402,10 @@ ichwd_event(void *arg, unsigned int cmd, int *error) cmd &= WD_INTERVAL; timeout = ((uint64_t)1 << cmd) / ICHWD_TICK; if (cmd) { - if (timeout != sc->timeout) { - if (!sc->active) - ichwd_tmr_enable(sc); + if (!sc->active) + ichwd_tmr_enable(sc); + if (timeout != sc->timeout) ichwd_tmr_set(sc, timeout); - } ichwd_tmr_reload(sc); *error = 0; } else { |
