diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-04-22 22:00:16 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-04-22 22:00:16 +0000 |
commit | c1641a7662c34455d591512b3c3c5e8f50b97531 (patch) | |
tree | b9bf88397db259e84ca4243db76eb7ad77e9fd3b /sys/dev/usb/usb_request.c | |
parent | b42af4d929f529c1ee9b391eb3616582b2708e66 (diff) | |
download | FreeBSD-src-c1641a7662c34455d591512b3c3c5e8f50b97531.zip FreeBSD-src-c1641a7662c34455d591512b3c3c5e8f50b97531.tar.gz |
Properly name the sxlocks, mutexes and condvars.
Diffstat (limited to 'sys/dev/usb/usb_request.c')
-rw-r--r-- | sys/dev/usb/usb_request.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_request.c b/sys/dev/usb/usb_request.c index 32c5778..a5ae56b 100644 --- a/sys/dev/usb/usb_request.c +++ b/sys/dev/usb/usb_request.c @@ -99,7 +99,7 @@ usbd_do_request_callback(struct usb_xfer *xfer, usb_error_t error) usbd_transfer_submit(xfer); break; default: - cv_signal(xfer->xroot->udev->default_cv); + cv_signal(&xfer->xroot->udev->ctrlreq_cv); break; } } @@ -319,7 +319,7 @@ usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx, * is achieved when multiple threads are involved: */ - sx_xlock(udev->default_sx); + sx_xlock(&udev->ctrl_sx); hr_func = usbd_get_hr_func(udev); @@ -457,7 +457,7 @@ usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx, usbd_transfer_start(xfer); while (usbd_transfer_pending(xfer)) { - cv_wait(udev->default_cv, + cv_wait(&udev->ctrlreq_cv, xfer->xroot->xfer_mtx); } @@ -534,7 +534,7 @@ usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx, USB_XFER_UNLOCK(xfer); done: - sx_xunlock(udev->default_sx); + sx_xunlock(&udev->ctrl_sx); if (mtx) { mtx_lock(mtx); |