Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jun 2014 15:51:30 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267212 - head/sys/dev/usb/controller
Message-ID:  <201406071551.s57FpUfo082454@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sat Jun  7 15:51:29 2014
New Revision: 267212
URL: http://svnweb.freebsd.org/changeset/base/267212

Log:
  Make WITNESS happy by giving USB mutexes different names.
  
  Reported by:	trociny @
  MFC after:	3 days

Modified:
  head/sys/dev/usb/controller/usb_controller.c

Modified: head/sys/dev/usb/controller/usb_controller.c
==============================================================================
--- head/sys/dev/usb/controller/usb_controller.c	Sat Jun  7 10:13:45 2014	(r267211)
+++ head/sys/dev/usb/controller/usb_controller.c	Sat Jun  7 15:51:29 2014	(r267212)
@@ -899,10 +899,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?201406071551.s57FpUfo082454>