From: Alan Stern Date: Mon, 19 Nov 2007 15:15:02 +0000 (-0500) Subject: USB: make ksuspend_usbd thread non-freezable X-Git-Tag: firefly_0821_release~23568^2~87 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4145ed6dc597a9bea5f6ae8c574653b2de10620f;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) * singlethreaded. Its job doesn't justify running on more * than one CPU. */ - ksuspend_usb_wq = create_freezeable_workqueue("ksuspend_usbd"); + ksuspend_usb_wq = create_singlethread_workqueue("ksuspend_usbd"); if (!ksuspend_usb_wq) return -ENOMEM; return 0;