diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-26 13:43:39 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-26 13:43:39 +0000 |
commit | cb0a0f90cfd7d090d3ac1f6afd8ba7702c1f32ee (patch) | |
tree | 7b90da20d23d8ff8249930be6528875014f02f6b /sys/arch | |
parent | b972436577589cbf5796f477c17c357efe73dc81 (diff) |
timeout_add -> timeout_add_msec
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hp300/dev/mt.c | 8 | ||||
-rw-r--r-- | sys/arch/hp300/dev/nhpib.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hp300/dev/mt.c b/sys/arch/hp300/dev/mt.c index 6104c987831..4117fd7e0b6 100644 --- a/sys/arch/hp300/dev/mt.c +++ b/sys/arch/hp300/dev/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.22 2009/01/11 16:54:59 blambert Exp $ */ +/* $OpenBSD: mt.c,v 1.23 2009/07/26 13:43:38 blambert Exp $ */ /* $NetBSD: mt.c,v 1.8 1997/03/31 07:37:29 scottr Exp $ */ /* @@ -555,7 +555,7 @@ mtstart(arg) * but not otherwise. */ if (sc->sc_flags & (MTF_DSJTIMEO | MTF_STATTIMEO)) { - timeout_add(&sc->sc_start_to, hz >> 5); + timeout_add_msec(&sc->sc_start_to, 1000 >> 5); return; } case 2: @@ -641,7 +641,7 @@ mtstart(arg) break; case -2: - timeout_add(&sc->sc_start_to, hz >> 5); + timeout_add_msec(&sc->sc_start_to, 1000 >> 5); return; } @@ -797,7 +797,7 @@ mtintr(arg) * to the request for DSJ. It's probably just "busy" figuring * it out and will know in a little bit... */ - timeout_add(&sc->sc_intr_to, hz >> 5); + timeout_add_msec(&sc->sc_intr_to, 1000 >> 5); return; default: diff --git a/sys/arch/hp300/dev/nhpib.c b/sys/arch/hp300/dev/nhpib.c index 3e191da1177..d5b2bb747af 100644 --- a/sys/arch/hp300/dev/nhpib.c +++ b/sys/arch/hp300/dev/nhpib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nhpib.c,v 1.16 2005/11/13 18:52:15 miod Exp $ */ +/* $OpenBSD: nhpib.c,v 1.17 2009/07/26 13:43:38 blambert Exp $ */ /* $NetBSD: nhpib.c,v 1.17 1997/05/05 21:06:41 thorpej Exp $ */ /* @@ -433,7 +433,7 @@ nhpibdone(hs) if (hs->sc_flags & HPIBF_READ) { if ((hs->sc_flags & HPIBF_TIMO) && (hd->hpib_ids & IDS_IR) == 0) - timeout_add(&sc->sc_read_to, hz >> 2); + timeout_add_msec(&sc->sc_read_to, 1000 >> 2); } else { if (hs->sc_count == 1) { (void) nhpibwait(hd, MIS_BO); |