summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorblambert <blambert@openbsd.org>2008-09-10 14:01:22 +0000
committerblambert <blambert@openbsd.org>2008-09-10 14:01:22 +0000
commite15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53 (patch)
treed3d8a7030040a3af4c3c262455d8acd4f4d4bebd /sys/dev/pci/if_vr.c
parentThere's no need to fully traverse the wakeup queue when waking a specific (diff)
downloadwireguard-openbsd-e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53.tar.xz
wireguard-openbsd-e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53.zip
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_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 17133111850..ae57786c965 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.75 2008/07/24 19:01:28 thib Exp $ */
+/* $OpenBSD: if_vr.c,v 1.76 2008/09/10 14:01:23 blambert Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -951,7 +951,7 @@ vr_tick(void *xsc)
}
mii_tick(&sc->sc_mii);
- timeout_add(&sc->sc_to, hz);
+ timeout_add_sec(&sc->sc_to, 1);
splx(s);
}
@@ -1289,7 +1289,7 @@ vr_init(void *xsc)
ifp->if_flags &= ~IFF_OACTIVE;
if (!timeout_pending(&sc->sc_to))
- timeout_add(&sc->sc_to, hz);
+ timeout_add_sec(&sc->sc_to, 1);
splx(s);
}