summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_pcn.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-09-10 14:01:24 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-09-10 14:01:24 +0000
commit33d64896abc9e79070ec22125a832e7d8ef87878 (patch)
tree1f2297f6ceb3127f1cc36b8d9c89baeeceb16922 /sys/dev/pci/if_pcn.c
parent528af50e90df2cf2ebdf638dc4d94752c1861936 (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_pcn.c')
-rw-r--r--sys/dev/pci/if_pcn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c
index d18c73efe44..1d23e361ed5 100644
--- a/sys/dev/pci/if_pcn.c
+++ b/sys/dev/pci/if_pcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pcn.c,v 1.18 2008/05/13 02:24:08 brad Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.19 2008/09/10 14:01:22 blambert Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
@@ -1520,7 +1520,7 @@ pcn_tick(void *arg)
mii_tick(&sc->sc_mii);
splx(s);
- timeout_add(&sc->sc_tick_timeout, hz);
+ timeout_add_sec(&sc->sc_tick_timeout, 1);
}
/*
@@ -1762,7 +1762,7 @@ pcn_init(struct ifnet *ifp)
if (sc->sc_flags & PCN_F_HAS_MII) {
/* Start the one second MII clock. */
- timeout_add(&sc->sc_tick_timeout, hz);
+ timeout_add_sec(&sc->sc_tick_timeout, 1);
}
/* ...all done! */