summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-01-16 13:03:28 +0000
committermpi <mpi@openbsd.org>2020-01-16 13:03:28 +0000
commitcf10289487c74b7839c34a3be5748784882f29c5 (patch)
tree5f818267c8dfee81559bd70d113261a14f24b9e9
parentLink iked live test to build. To operate it needs two remote (diff)
downloadwireguard-openbsd-cf10289487c74b7839c34a3be5748784882f29c5.tar.xz
wireguard-openbsd-cf10289487c74b7839c34a3be5748784882f29c5.zip
Convert to tsleep_nsec(9).
Tested by kn@, ok kettenis@, kn@
-rw-r--r--sys/arch/sparc64/dev/vdsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c
index 189eec982f3..913f1bb107d 100644
--- a/sys/arch/sparc64/dev/vdsp.c
+++ b/sys/arch/sparc64/dev/vdsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsp.c,v 1.46 2019/10/06 16:24:14 beck Exp $ */
+/* $OpenBSD: vdsp.c,v 1.47 2020/01/16 13:03:28 mpi Exp $ */
/*
* Copyright (c) 2009, 2011, 2014 Mark Kettenis
*
@@ -894,7 +894,8 @@ vdsp_sendmsg(struct vdsp_softc *sc, void *msg, size_t len, int dowait)
* we specify a timeout such that we don't
* block forever.
*/
- err = tsleep(lc->lc_txq, PWAIT, "vdsp", 1);
+ err = tsleep_nsec(lc->lc_txq, PWAIT, "vdsp",
+ MSEC_TO_NSEC(10));
}
} while (dowait && err == EWOULDBLOCK);
}