summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>2008-10-23 08:08:45 +0000
committerOleg Safiullin <form@cvs.openbsd.org>2008-10-23 08:08:45 +0000
commitce79c31a5bd9bdc459d932d7f7c9a86e5905dd82 (patch)
tree8c8f66018bf21ad857f86ceaf464d4bbccbce53a /sys
parent2cfc1a8023db751a00876b6e472d23d9c1e23415 (diff)
Round up to the nearest minute 16-bit timeout values for older IT8712 chips.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/it.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index 74560168977..d6c981ed1cd 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.37 2008/10/22 05:38:17 form Exp $ */
+/* $OpenBSD: it.c,v 1.38 2008/10/23 08:08:44 form Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -483,6 +483,8 @@ it_wdog_cb(void *arg, int period)
*/
if (sc->sc_chipid == IT_ID_8712 && sc->sc_chiprev < 0x8 &&
period > 0xff) {
+ if (period % 60 >= 30)
+ period += 60;
period /= 60;
minutes++;
}