diff options
author | 2008-09-10 14:01:22 +0000 | |
---|---|---|
committer | 2008-09-10 14:01:22 +0000 | |
commit | e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53 (patch) | |
tree | d3d8a7030040a3af4c3c262455d8acd4f4d4bebd /sys/dev/usb/if_url.c | |
parent | There's no need to fully traverse the wakeup queue when waking a specific (diff) | |
download | wireguard-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/usb/if_url.c')
-rw-r--r-- | sys/dev/usb/if_url.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index dff0568c6c4..2d9b1e87e39 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.50 2007/11/23 15:43:02 mbalmer Exp $ */ +/* $OpenBSD: if_url.c,v 1.51 2008/09/10 14:01:23 blambert Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -574,7 +574,7 @@ url_init(struct ifnet *ifp) splx(s); - timeout_add(&sc->sc_stat_ch, hz); + timeout_add_sec(&sc->sc_stat_ch, 1); return (0); } @@ -1381,7 +1381,7 @@ url_tick_task(void *xsc) url_start(ifp); } - timeout_add(&sc->sc_stat_ch, hz); + timeout_add_sec(&sc->sc_stat_ch, 1); splx(s); } |