diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-27 17:19:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-27 17:19:33 +0000 |
commit | ba5df1ca426fe7471a6c15b2181c3ea759b4acb9 (patch) | |
tree | 6a3ad0420b5bdd251d49efee3b8fa166807092ce | |
parent | cedb9875429363b208ae285e317318b542d7544b (diff) | |
download | FreeBSD-src-ba5df1ca426fe7471a6c15b2181c3ea759b4acb9.zip FreeBSD-src-ba5df1ca426fe7471a6c15b2181c3ea759b4acb9.tar.gz |
Use pause() rather than using tsleep() on a dummy variable.
-rw-r--r-- | sys/dev/usb/sl811hs.c | 1 | ||||
-rw-r--r-- | sys/dev/usb/sl811hsvar.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/sl811hs.c b/sys/dev/usb/sl811hs.c index bfc9991..9ad9e9a 100644 --- a/sys/dev/usb/sl811hs.c +++ b/sys/dev/usb/sl811hs.c @@ -134,7 +134,6 @@ static void slhci_abort_xfer(usbd_xfer_handle, usbd_status); static void slhci_device_clear_toggle(usbd_pipe_handle); extern int usbdebug; -int slhci_dummy; /* For root hub */ #define SLHCI_INTR_ENDPT (1) diff --git a/sys/dev/usb/sl811hsvar.h b/sys/dev/usb/sl811hsvar.h index e7eef0b..6f5e6d6 100644 --- a/sys/dev/usb/sl811hsvar.h +++ b/sys/dev/usb/sl811hsvar.h @@ -43,7 +43,7 @@ #define MS_TO_TICKS(ms) ((ms) * hz / 1000) #define delay_ms(X) \ - tsleep(&slhci_dummy, PRIBIO, "slhci", MS_TO_TICKS(X)) + pause("slhci", MS_TO_TICKS(X)) #define SL11_PID_OUT (0x1) #define SL11_PID_IN (0x9) |