diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-06 17:13:11 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-06 17:13:11 +0000 |
commit | 6d1313405c29b592524391f67ba33560af0007f5 (patch) | |
tree | daa9525a09663e661af53c0bed9070467aafd71c /sys/dev/video.c | |
parent | 6c4656a3cd6db646e1e52083394879bc9cdd7d58 (diff) |
tsleep(9) to tsleep_nsec(9) conversion
ok visa@, kn@
Diffstat (limited to 'sys/dev/video.c')
-rw-r--r-- | sys/dev/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c index 294cc9e2528..61e37fb1d04 100644 --- a/sys/dev/video.c +++ b/sys/dev/video.c @@ -1,4 +1,4 @@ -/* $OpenBSD: video.c,v 1.41 2017/10/11 08:08:50 mpi Exp $ */ +/* $OpenBSD: video.c,v 1.42 2019/10/06 17:13:10 mpi Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -182,7 +182,7 @@ videoread(dev_t dev, struct uio *uio, int ioflag) if (sc->sc_frames_ready < 1) { /* block userland read until a frame is ready */ - error = tsleep(sc, PWAIT | PCATCH, "vid_rd", 0); + error = tsleep_nsec(sc, PWAIT | PCATCH, "vid_rd", INFSLP); if (sc->sc_dying) error = EIO; if (error) |