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/pci/if_et.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/pci/if_et.c')
-rw-r--r-- | sys/dev/pci/if_et.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_et.c b/sys/dev/pci/if_et.c index 5f34d4b699a..f80a5a004c8 100644 --- a/sys/dev/pci/if_et.c +++ b/sys/dev/pci/if_et.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_et.c,v 1.12 2008/07/11 09:29:02 kevlo Exp $ */ +/* $OpenBSD: if_et.c,v 1.13 2008/09/10 14:01:22 blambert Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. * @@ -1013,7 +1013,7 @@ et_init(struct ifnet *ifp) et_enable_intrs(sc, ET_INTRS); - timeout_add(&sc->sc_tick, hz); + timeout_add_sec(&sc->sc_tick, 1); CSR_WRITE_4(sc, ET_TIMER, sc->sc_timer); @@ -1142,7 +1142,7 @@ et_start(struct ifnet *ifp) } if (trans) { - timeout_add(&sc->sc_txtick, hz); + timeout_add_sec(&sc->sc_txtick, 1); ifp->if_timer = 5; } } @@ -2035,7 +2035,7 @@ et_tick(void *xsc) s = splnet(); mii_tick(&sc->sc_miibus); - timeout_add(&sc->sc_tick, hz); + timeout_add_sec(&sc->sc_tick, 1); splx(s); } |