diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-06-15 16:58:58 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-06-15 16:58:58 +0000 |
commit | 4ebfc1c06999a5a51cd5f479d2f728711304ff07 (patch) | |
tree | 7caa39a67e350e908930b2df005d437996f0d3d5 | |
parent | 86271cfb571a107f9cb16e22f13dffe2f8231771 (diff) |
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); } |