diff options
author | phk <phk@FreeBSD.org> | 2006-03-06 07:43:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-03-06 07:43:28 +0000 |
commit | 67fc39f6428e518f66dd42706fe1cd9e4deabf78 (patch) | |
tree | 5569555b7586d22373719653efa74b70f304c3fd | |
parent | 00fe26929235bada2f0e5637b6b0e10299f9c7ad (diff) | |
download | FreeBSD-src-67fc39f6428e518f66dd42706fe1cd9e4deabf78.zip FreeBSD-src-67fc39f6428e518f66dd42706fe1cd9e4deabf78.tar.gz |
Improve the advantech watchdog.
-rw-r--r-- | sys/i386/i386/geode.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/i386/i386/geode.c b/sys/i386/i386/geode.c index 4dbad89..14d73ea 100644 --- a/sys/i386/i386/geode.c +++ b/sys/i386/i386/geode.c @@ -165,8 +165,12 @@ geode_watchdog(void *foo __unused, u_int cmd, int *error) static void advantech_watchdog(void *foo __unused, u_int cmd, int *error) { - outb(0x0443, (cmd & WD_INTERVAL) ? 1 : 0); - *error = 0; + if (cmd && (cmd & WD_INTERVAL) <= WD_TO_1SEC) { + outb(0x0443, 1); + *error = 0; + } else { + outb(0x0443, 0); + } } static int |