mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
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>
This commit is contained in:
parent
a6a01369fd
commit
4145ed6dc5
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ static int ksuspend_usb_init(void)
|
||||||
* singlethreaded. Its job doesn't justify running on more
|
* singlethreaded. Its job doesn't justify running on more
|
||||||
* than one CPU.
|
* than one CPU.
|
||||||
*/
|
*/
|
||||||
ksuspend_usb_wq = create_freezeable_workqueue("ksuspend_usbd");
|
ksuspend_usb_wq = create_singlethread_workqueue("ksuspend_usbd");
|
||||||
if (!ksuspend_usb_wq)
|
if (!ksuspend_usb_wq)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue