summaryrefslogtreecommitdiffstats
path: root/sys/dev/hil
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-12-31 10:05:32 +0000
committermpi <mpi@openbsd.org>2019-12-31 10:05:32 +0000
commit036047429f90acc8dedffad80d5a312829236d4d (patch)
tree9e1a713c8b0a3e58c2530c6f012dad79c7f8a12b /sys/dev/hil
parentinclude sys/sensors.h for sensor use (diff)
downloadwireguard-openbsd-036047429f90acc8dedffad80d5a312829236d4d.tar.xz
wireguard-openbsd-036047429f90acc8dedffad80d5a312829236d4d.zip
Convert infinite sleeps to {m,t}sleep_nsec(9).
ok kn@
Diffstat (limited to 'sys/dev/hil')
-rw-r--r--sys/dev/hil/hil.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/hil/hil.c b/sys/dev/hil/hil.c
index 314445e920a..d3871b190e3 100644
--- a/sys/dev/hil/hil.c
+++ b/sys/dev/hil/hil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil.c,v 1.27 2017/12/30 20:46:59 guenther Exp $ */
+/* $OpenBSD: hil.c,v 1.28 2019/12/31 10:05:32 mpi Exp $ */
/*
* Copyright (c) 2003, 2004, Miodrag Vallat.
* All rights reserved.
@@ -450,7 +450,8 @@ hil_thread(void *arg)
s = splhil();
if (sc->sc_pending == 0) {
splx(s);
- (void)tsleep(&sc->sc_pending, PWAIT, "hil_event", 0);
+ tsleep_nsec(&sc->sc_pending, PWAIT, "hil_event",
+ INFSLP);
continue;
}