summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2018-12-20 10:26:36 +0000
committerclaudio <claudio@openbsd.org>2018-12-20 10:26:36 +0000
commit276721a9494e3b845de7a162888764a6e5d36be9 (patch)
tree568cce3d1a841cdaecbe3d24809d53cf12cfb103 /sys/net/if.c
parentMove a badly positioned parenthesis that caused nonsensical movement (diff)
downloadwireguard-openbsd-276721a9494e3b845de7a162888764a6e5d36be9.tar.xz
wireguard-openbsd-276721a9494e3b845de7a162888764a6e5d36be9.zip
Make this not hz dependent by using timeout_add_sec() also rename the
define to IFNET_SLOWTIMO since it is no longer a hz divisor. OK visa@ bluhm@ kn@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 864bc23d833..12abcd4a012 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.569 2018/12/11 22:08:57 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.570 2018/12/20 10:26:36 claudio Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1626,7 +1626,7 @@ if_slowtimo(void *arg)
if (ifp->if_watchdog) {
if (ifp->if_timer > 0 && --ifp->if_timer == 0)
task_add(net_tq(ifp->if_index), &ifp->if_watchdogtask);
- timeout_add(&ifp->if_slowtimo, hz / IFNET_SLOWHZ);
+ timeout_add_sec(&ifp->if_slowtimo, IFNET_SLOWTIMO);
}
splx(s);
}