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/ic/gem.c | |
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/ic/gem.c')
-rw-r--r-- | sys/dev/ic/gem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 31a16ba0009..3d15faffa0d 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.77 2008/08/30 07:39:12 brad Exp $ */ +/* $OpenBSD: gem.c,v 1.78 2008/09/10 14:01:22 blambert Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -417,7 +417,7 @@ gem_tick(void *arg) mii_tick(&sc->sc_mii); splx(s); - timeout_add(&sc->sc_tick_ch, hz); + timeout_add_sec(&sc->sc_tick_ch, 1); } int @@ -815,7 +815,7 @@ gem_init(struct ifnet *ifp) bus_space_write_4(t, h, GEM_RX_KICK, GEM_NRXDESC-4); /* Start the one second timer. */ - timeout_add(&sc->sc_tick_ch, hz); + timeout_add_sec(&sc->sc_tick_ch, 1); ifp->if_flags |= IFF_RUNNING; ifp->if_flags &= ~IFF_OACTIVE; |