aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-11-19 10:15:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 17:34:51 -0500
commit4145ed6dc597a9bea5f6ae8c574653b2de10620f (patch)
treed50872c7e72f022002f5e1067ada5f270329213f /drivers/usb/core
parenta6a01369fdf7c1376421b243ae740465a527b96c (diff)
USB: make ksuspend_usbd thread non-freezable
This patch (as1012b) makes the ksuspend_usbd kernel thread non-freezable. Since the PM core has been changed to lock all devices during a system sleep, the thread no longer needs to be frozen. It won't interfere with a system sleep because before trying to resume a root hub device, it acquires the device's lock. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 8f142370103d..bc5edacb0c34 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -230,7 +230,7 @@ static int ksuspend_usb_init(void)
230 * singlethreaded. Its job doesn't justify running on more 230 * singlethreaded. Its job doesn't justify running on more
231 * than one CPU. 231 * than one CPU.
232 */ 232 */
233 ksuspend_usb_wq = create_freezeable_workqueue("ksuspend_usbd"); 233 ksuspend_usb_wq = create_singlethread_workqueue("ksuspend_usbd");
234 if (!ksuspend_usb_wq) 234 if (!ksuspend_usb_wq)
235 return -ENOMEM; 235 return -ENOMEM;
236 return 0; 236 return 0;