diff options
author | mpi <mpi@openbsd.org> | 2019-12-31 10:05:32 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2019-12-31 10:05:32 +0000 |
commit | 036047429f90acc8dedffad80d5a312829236d4d (patch) | |
tree | 9e1a713c8b0a3e58c2530c6f012dad79c7f8a12b /sys/dev/hil | |
parent | include sys/sensors.h for sensor use (diff) | |
download | wireguard-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.c | 5 |
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; } |