svn commit: r188414 - head/sys/dev/usb2/misc

Andrew Thompson thompsa at FreeBSD.org
Mon Feb 9 14:06:53 PST 2009


Author: thompsa
Date: Mon Feb  9 22:06:52 2009
New Revision: 188414
URL: http://svn.freebsd.org/changeset/base/188414

Log:
  MFp4 //depot/projects/usb; 157069
  
   - Change "usb2_pause_mtx" so that it takes the timeout value in ticks
  
  Submitted by:	Hans Petter Selasky

Modified:
  head/sys/dev/usb2/misc/ufm2.c

Modified: head/sys/dev/usb2/misc/ufm2.c
==============================================================================
--- head/sys/dev/usb2/misc/ufm2.c	Mon Feb  9 22:05:25 2009	(r188413)
+++ head/sys/dev/usb2/misc/ufm2.c	Mon Feb  9 22:06:52 2009	(r188414)
@@ -288,10 +288,7 @@ ufm_get_stat(struct ufm_softc *sc, void 
 	 * Note, there's a 240ms settle time before the status
 	 * will be valid, so sleep that amount.
 	 */
-
-	mtx_lock(&sc->sc_mtx);
-	usb2_pause_mtx(&sc->sc_mtx, USB_MS_HZ / 4);
-	mtx_unlock(&sc->sc_mtx);
+	usb2_pause_mtx(NULL, hz / 4);
 
 	if (ufm_do_req(sc, UFM_CMD0,
 	    0x00, 0x24, &ret)) {


More information about the svn-src-all mailing list