diff options
author | 2008-06-15 16:58:57 +0000 | |
---|---|---|
committer | 2008-06-15 16:58:57 +0000 | |
commit | b3f22320f57c1138fe5d21be76a2807b689571de (patch) | |
tree | 51c41dbbd0b26768bc9713eacbcc77d18b581177 | |
parent | Allow MaxAuthTries within a Match block. ok djm@ (diff) | |
download | wireguard-openbsd-b3f22320f57c1138fe5d21be76a2807b689571de.tar.xz wireguard-openbsd-b3f22320f57c1138fe5d21be76a2807b689571de.zip |
Make frame queueing reliable by setting tsleep() priorities to 0.
-rw-r--r-- | sys/dev/usb/uvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 1addfc44f22..d63892d236f 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.37 2008/06/15 11:08:57 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.38 2008/06/15 16:58:57 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -1919,7 +1919,7 @@ uvideo_dqbuf(void *v, struct v4l2_buffer *dqb) if (SIMPLEQ_EMPTY(&sc->sc_mmap_q)) { /* mmap queue is empty, block until first frame is queued */ - error = tsleep(sc, PWAIT | PCATCH, "vid_mmap", 0); + error = tsleep(sc, 0, "vid_mmap", 0); if (error) return (EINVAL); } |