summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-07-24 08:15:39 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-07-24 08:15:39 +0000
commita64856e75523a9fc0aabf80adb847e417d1d1ad2 (patch)
treefeb2e0ea9689988c607a9adf1981c2dcf0f1fd8a /sys/dev/usb/ehci.c
parentcd49db63f8b79604db53ba3962d535bc0a2e39b5 (diff)
timeout_add -> timeout_add_msec
ok krw@
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index f750348694f..974083b0de7 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.100 2009/06/02 23:49:33 deraadt Exp $ */
+/* $OpenBSD: ehci.c,v 1.101 2009/07/24 08:15:38 blambert Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -3235,7 +3235,7 @@ ehci_device_request(usbd_xfer_handle xfer)
if (xfer->timeout && !sc->sc_bus.use_polling) {
timeout_del(&xfer->timeout_handle);
timeout_set(&xfer->timeout_handle, ehci_timeout, xfer);
- timeout_add(&xfer->timeout_handle, mstohz(xfer->timeout));
+ timeout_add_msec(&xfer->timeout_handle, xfer->timeout);
}
ehci_add_intr_list(sc, exfer);
xfer->status = USBD_IN_PROGRESS;
@@ -3347,7 +3347,7 @@ ehci_device_bulk_start(usbd_xfer_handle xfer)
if (xfer->timeout && !sc->sc_bus.use_polling) {
timeout_del(&xfer->timeout_handle);
timeout_set(&xfer->timeout_handle, ehci_timeout, xfer);
- timeout_add(&xfer->timeout_handle, mstohz(xfer->timeout));
+ timeout_add_msec(&xfer->timeout_handle, xfer->timeout);
}
ehci_add_intr_list(sc, exfer);
xfer->status = USBD_IN_PROGRESS;
@@ -3522,7 +3522,7 @@ ehci_device_intr_start(usbd_xfer_handle xfer)
if (xfer->timeout && !sc->sc_bus.use_polling) {
timeout_del(&xfer->timeout_handle);
timeout_set(&xfer->timeout_handle, ehci_timeout, xfer);
- timeout_add(&xfer->timeout_handle, mstohz(xfer->timeout));
+ timeout_add_msec(&xfer->timeout_handle, xfer->timeout);
}
ehci_add_intr_list(sc, exfer);
xfer->status = USBD_IN_PROGRESS;
@@ -3623,8 +3623,7 @@ ehci_device_intr_done(usbd_xfer_handle xfer)
if (xfer->timeout && !sc->sc_bus.use_polling) {
timeout_del(&xfer->timeout_handle);
timeout_set(&xfer->timeout_handle, ehci_timeout, xfer);
- timeout_add(&xfer->timeout_handle,
- mstohz(xfer->timeout));
+ timeout_add_msec(&xfer->timeout_handle, xfer->timeout);
}
splx(s);