From 33d64896abc9e79070ec22125a832e7d8ef87878 Mon Sep 17 00:00:00 2001 From: Bret Lambert Date: Wed, 10 Sep 2008 14:01:24 +0000 Subject: 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@ --- sys/dev/pci/if_pcn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_pcn.c') 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! */ -- cgit v1.2.3