diff options
author | 2019-10-07 10:47:08 +0000 | |
---|---|---|
committer | 2019-10-07 10:47:08 +0000 | |
commit | 140aea89c42feca90fd6cdafb2bf0bf68c618997 (patch) | |
tree | be9c50136014a715b9b556a8eaab4392fd463725 | |
parent | If optstring is NULL and usecommonopt is true, optstr was prepended (diff) | |
download | wireguard-openbsd-140aea89c42feca90fd6cdafb2bf0bf68c618997.tar.xz wireguard-openbsd-140aea89c42feca90fd6cdafb2bf0bf68c618997.zip |
Convert infinite tsleep(9) to tsleep_nsec(9).
ok ratchov@
-rw-r--r-- | sys/dev/audio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 6fe1e5e46b8..a224ebc565b 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.182 2019/09/10 07:39:39 ratchov Exp $ */ +/* $OpenBSD: audio.c,v 1.183 2019/10/07 10:47:08 mpi Exp $ */ /* * Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org> * @@ -1528,7 +1528,7 @@ audio_read(struct audio_softc *sc, struct uio *uio, int ioflag) /* block if quiesced */ while (sc->quiesce) - tsleep(&sc->quiesce, 0, "au_qrd", 0); + tsleep_nsec(&sc->quiesce, 0, "au_qrd", INFSLP); /* start automatically if audio_ioc_start() was never called */ if (audio_canstart(sc)) { @@ -1590,7 +1590,7 @@ audio_write(struct audio_softc *sc, struct uio *uio, int ioflag) /* block if quiesced */ while (sc->quiesce) - tsleep(&sc->quiesce, 0, "au_qwr", 0); + tsleep_nsec(&sc->quiesce, 0, "au_qwr", INFSLP); /* * if IO_NDELAY flag is set then check if there is enough room @@ -1679,7 +1679,7 @@ audio_ioctl(struct audio_softc *sc, unsigned long cmd, void *addr) /* block if quiesced */ while (sc->quiesce) - tsleep(&sc->quiesce, 0, "au_qio", 0); + tsleep_nsec(&sc->quiesce, 0, "au_qio", INFSLP); switch (cmd) { case FIONBIO: @@ -1815,7 +1815,7 @@ audio_ioctl_mixer(struct audio_softc *sc, unsigned long cmd, void *addr, { /* block if quiesced */ while (sc->quiesce) - tsleep(&sc->quiesce, 0, "mix_qio", 0); + tsleep_nsec(&sc->quiesce, 0, "mix_qio", INFSLP); switch (cmd) { case FIONBIO: |