Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 00:12:18 +0000 (UTC)
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r212487 - user/weongyo/usb/sys/dev/usb/controller
Message-ID:  <201009120012.o8C0CIRD056707@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009120012.o8C0CIRD056707>