summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-10-06 17:11:52 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-10-06 17:11:52 +0000
commit6c4656a3cd6db646e1e52083394879bc9cdd7d58 (patch)
tree72eb8c0d2c7ac06eb9271aa871cc82acae53f2a9 /sys/dev/usb/usbdi.c
parent8d44e7bf966cd778a0bab74e953b7f93672ff23c (diff)
tsleep(9) to tsleep_nsec(9) conversions.
ok visa@, kn@, cheloha@
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 8e445af5ff9..e51b4b31947 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.c,v 1.100 2018/11/18 16:33:26 mpi Exp $ */
+/* $OpenBSD: usbdi.c,v 1.101 2019/10/06 17:11:51 mpi Exp $ */
/* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -88,7 +88,7 @@ void
usbd_ref_wait(struct usbd_device *dev)
{
while (dev->ref_cnt > 0)
- tsleep(&dev->ref_cnt, PWAIT, "usbref", hz * 60);
+ tsleep_nsec(&dev->ref_cnt, PWAIT, "usbref", SEC_TO_NSEC(60));
}
int
@@ -364,7 +364,7 @@ usbd_transfer(struct usbd_xfer *xfer)
while (!xfer->done) {
flags = PRIBIO|(xfer->flags & USBD_CATCH ? PCATCH : 0);
- err = tsleep(xfer, flags, "usbsyn", 0);
+ err = tsleep_nsec(xfer, flags, "usbsyn", INFSLP);
if (err && !xfer->done) {
usbd_abort_pipe(pipe);
if (err == EINTR)