diff options
author | 2019-12-18 00:27:47 +0000 | |
---|---|---|
committer | 2019-12-18 00:27:47 +0000 | |
commit | 52ed6215f16089a0e4e8c823e170ebab71a06675 (patch) | |
tree | a94fc90b1c7cc130eae04eb96ac5fd48a35c647c /sys/dev/audio.c | |
parent | sync (diff) | |
download | wireguard-openbsd-52ed6215f16089a0e4e8c823e170ebab71a06675.tar.xz wireguard-openbsd-52ed6215f16089a0e4e8c823e170ebab71a06675.zip |
audio(4): msleep(9) -> msleep_nsec(9)
ok ratchov@
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r-- | sys/dev/audio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index a224ebc565b..63b7e5e5b72 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.183 2019/10/07 10:47:08 mpi Exp $ */ +/* $OpenBSD: audio.c,v 1.184 2019/12/18 00:27:47 cheloha Exp $ */ /* * Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org> * @@ -1492,8 +1492,8 @@ audio_drain(struct audio_softc *sc) * work, useful only for debugging drivers */ sc->play.blocking = 1; - error = msleep(&sc->play.blocking, &audio_lock, - PWAIT | PCATCH, "au_dr", 5 * hz); + error = msleep_nsec(&sc->play.blocking, &audio_lock, + PWAIT | PCATCH, "au_dr", SEC_TO_NSEC(5)); if (!(sc->dev.dv_flags & DVF_ACTIVE)) error = EIO; if (error) { @@ -1547,8 +1547,8 @@ audio_read(struct audio_softc *sc, struct uio *uio, int ioflag) } DPRINTFN(1, "%s: read sleep\n", DEVNAME(sc)); sc->rec.blocking = 1; - error = msleep(&sc->rec.blocking, - &audio_lock, PWAIT | PCATCH, "au_rd", 0); + error = msleep_nsec(&sc->rec.blocking, + &audio_lock, PWAIT | PCATCH, "au_rd", INFSLP); if (!(sc->dev.dv_flags & DVF_ACTIVE)) error = EIO; if (error) { @@ -1620,8 +1620,8 @@ audio_write(struct audio_softc *sc, struct uio *uio, int ioflag) } DPRINTFN(1, "%s: write sleep\n", DEVNAME(sc)); sc->play.blocking = 1; - error = msleep(&sc->play.blocking, - &audio_lock, PWAIT | PCATCH, "au_wr", 0); + error = msleep_nsec(&sc->play.blocking, + &audio_lock, PWAIT | PCATCH, "au_wr", INFSLP); if (!(sc->dev.dv_flags & DVF_ACTIVE)) error = EIO; if (error) { |