From c1fafa98d746b197b7c9797fe8f043ea2f6d921c Mon Sep 17 00:00:00 2001 From: thompsa Date: Sun, 5 Apr 2009 18:18:47 +0000 Subject: [PATCH] MFp4 //depot/projects/usb@159700 Get rid of the last CALLOUT_RETURNUNLOCKED reference. Submitted by: Hans Petter Selasky --- sys/dev/usb/controller/usb_controller.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index bea3e7770eec..84066a281d29 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -277,7 +277,7 @@ usb2_power_wdog(void *arg) usb2_bus_power_update(bus); - return; + USB_BUS_LOCK(bus); } /*------------------------------------------------------------------------* @@ -356,11 +356,8 @@ usb2_bus_attach(struct usb2_proc_msg *pm) /* set softc - we are ready */ device_set_softc(dev, bus); - /* start watchdog - this function will unlock the BUS lock ! */ + /* start watchdog */ usb2_power_wdog(bus); - - /* need to return locked */ - USB_BUS_LOCK(bus); } /*------------------------------------------------------------------------* @@ -534,7 +531,7 @@ usb2_bus_mem_alloc_all(struct usb2_bus *bus, bus_dma_tag_t dmat, NULL, MTX_DEF | MTX_RECURSE); usb2_callout_init_mtx(&bus->power_wdog, - &bus->bus_mtx, CALLOUT_RETURNUNLOCKED); + &bus->bus_mtx, 0); TAILQ_INIT(&bus->intr_q.head);