]> git.baikalelectronics.ru Git - kernel.git/commit
USB: create new workqueue thread for USB autosuspend
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 19 Sep 2006 14:14:07 +0000 (10:14 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Sep 2006 22:36:44 +0000 (15:36 -0700)
commitf5ce815de85e88d4158fce8e081728b15412d1f0
treec56c116b7720aae3dc5192f115444d16a5c21e58
parent6b4a08df88ea5cea8e34b2cc00b33dea10884093
USB: create new workqueue thread for USB autosuspend

This patch (as787) creates a new workqueue thread to handle delayed
USB autosuspend requests.  Previously the code used keventd.  However
it turns out that the hub driver's suspend routine calls
flush_scheduled_work(), making it a poor candidate for running in
keventd (the call immediately deadlocks).  The solution is to use a
new thread instead of keventd.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
drivers/usb/core/usb.c
drivers/usb/core/usb.h