svn commit: r212487 - user/weongyo/usb/sys/dev/usb/controller

Weongyo Jeong weongyo at FreeBSD.org
Sun Sep 12 00:12:18 UTC 2010


Author: weongyo
Date: Sun Sep 12 00:12:18 2010
New Revision: 212487
URL: http://svn.freebsd.org/changeset/base/212487

Log:
  An experimental commit to change the USB bus lock from the recursive to
  the normal.  It'd be best for HCD not to use the recursive lock to keep
  the code simple and readable.

Modified:
  user/weongyo/usb/sys/dev/usb/controller/usb_controller.c

Modified: user/weongyo/usb/sys/dev/usb/controller/usb_controller.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/controller/usb_controller.c	Sun Sep 12 00:08:07 2010	(r212486)
+++ user/weongyo/usb/sys/dev/usb/controller/usb_controller.c	Sun Sep 12 00:12:18 2010	(r212487)
@@ -582,7 +582,7 @@ usb_bus_struct_init(struct usb_bus *bus,
 	bus->alloc_failed = 0;
 
 	mtx_init(&bus->bus_mtx, device_get_nameunit(bus->parent),
-	    NULL, MTX_DEF | MTX_RECURSE);
+	    NULL, MTX_DEF);
 
 	usb_callout_init_mtx(&bus->power_wdog, &bus->bus_mtx, 0);
 


More information about the svn-src-user mailing list