Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2014 04:44:28 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r267315 - stable/10/sys/dev/usb/controller
Message-ID:  <201406100444.s5A4iSek050739@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Jun 10 04:44:28 2014
New Revision: 267315
URL: http://svnweb.freebsd.org/changeset/base/267315

Log:
  MFC r267212:
  Make WITNESS happy by giving USB mutexes different names.

Modified:
  stable/10/sys/dev/usb/controller/usb_controller.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/controller/usb_controller.c
==============================================================================
--- stable/10/sys/dev/usb/controller/usb_controller.c	Tue Jun 10 04:28:57 2014	(r267314)
+++ stable/10/sys/dev/usb/controller/usb_controller.c	Tue Jun 10 04:44:28 2014	(r267315)
@@ -898,10 +898,10 @@ usb_bus_mem_alloc_all(struct usb_bus *bu
 	bus->alloc_failed = 0;
 
 	mtx_init(&bus->bus_mtx, device_get_nameunit(bus->parent),
-	    NULL, MTX_DEF | MTX_RECURSE);
+	    "usb_def_mtx", MTX_DEF | MTX_RECURSE);
 
 	mtx_init(&bus->bus_spin_lock, device_get_nameunit(bus->parent),
-	    NULL, MTX_SPIN | MTX_RECURSE);
+	    "usb_spin_mtx", MTX_SPIN | MTX_RECURSE);
 
 	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?201406100444.s5A4iSek050739>