summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_ste.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_ste.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_ste.c')
-rw-r--r--sys/dev/pci/if_ste.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index 273804c90d9..c2f1b3fe9bd 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ste.c,v 1.40 2007/07/17 23:25:15 krw Exp $ */
+/* $OpenBSD: if_ste.c,v 1.41 2008/09/10 14:01:22 blambert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -815,7 +815,7 @@ ste_stats_update(void *xsc)
}
}
- timeout_add(&sc->sc_stats_tmo, hz);
+ timeout_add_sec(&sc->sc_stats_tmo, 1);
splx(s);
return;
@@ -1196,7 +1196,7 @@ ste_init(void *xsc)
splx(s);
timeout_set(&sc->sc_stats_tmo, ste_stats_update, sc);
- timeout_add(&sc->sc_stats_tmo, hz);
+ timeout_add_sec(&sc->sc_stats_tmo, 1);
return;
}