diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2008-09-10 14:01:24 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2008-09-10 14:01:24 +0000 |
commit | 33d64896abc9e79070ec22125a832e7d8ef87878 (patch) | |
tree | 1f2297f6ceb3127f1cc36b8d9c89baeeceb16922 /sys/dev/isa | |
parent | 528af50e90df2cf2ebdf638dc4d94752c1861936 (diff) |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/if_ef_isapnp.c | 6 | ||||
-rw-r--r-- | sys/dev/isa/viasio.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/isa/if_ef_isapnp.c b/sys/dev/isa/if_ef_isapnp.c index 046a917117d..641ad511eeb 100644 --- a/sys/dev/isa/if_ef_isapnp.c +++ b/sys/dev/isa/if_ef_isapnp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ef_isapnp.c,v 1.21 2006/03/25 22:41:44 djm Exp $ */ +/* $OpenBSD: if_ef_isapnp.c,v 1.22 2008/09/10 14:01:22 blambert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -471,7 +471,7 @@ efinit(sc) splx(s); - timeout_add(&sc->sc_tick_tmo, hz); + timeout_add_sec(&sc->sc_tick_tmo, 1); efstart(ifp); } @@ -1009,5 +1009,5 @@ ef_tick(v) s = splnet(); mii_tick(&sc->sc_mii); splx(s); - timeout_add(&sc->sc_tick_tmo, hz); + timeout_add_sec(&sc->sc_tick_tmo, 1); } diff --git a/sys/dev/isa/viasio.c b/sys/dev/isa/viasio.c index 2a0bcf5579c..cb7527ccd87 100644 --- a/sys/dev/isa/viasio.c +++ b/sys/dev/isa/viasio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viasio.c,v 1.10 2007/06/14 19:13:37 grange Exp $ */ +/* $OpenBSD: viasio.c,v 1.11 2008/09/10 14:01:22 blambert Exp $ */ /* * Copyright (c) 2005 Alexander Yurchenko <grange@openbsd.org> * @@ -312,7 +312,7 @@ viasio_hm_init(struct viasio_softc *sc) sensor_attach(&sc->sc_sensordev, &sc->sc_hm_sensors[i]); sensordev_install(&sc->sc_sensordev); timeout_set(&sc->sc_hm_timo, viasio_hm_refresh, sc); - timeout_add(&sc->sc_hm_timo, hz); + timeout_add_sec(&sc->sc_hm_timo, 1); } void @@ -425,7 +425,7 @@ viasio_hm_refresh(void *arg) sc->sc_hm_sensors[VT1211_HMS_FAN2].flags |= SENSOR_FINVALID; } - timeout_add(&sc->sc_hm_timo, hz); + timeout_add_sec(&sc->sc_hm_timo, 1); } void |