From: Rafael J. Wysocki Date: Mon, 20 Sep 2010 17:44:17 +0000 (+0200) Subject: PM / Runtime: Use alloc_workqueue() for creating the PM workqueue X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944;p=openwrt%2Fstaging%2Fblogic.git PM / Runtime: Use alloc_workqueue() for creating the PM workqueue Although we need the PM workqueue to be freezable, we don't need it to be singlethread. Also, the number of concurrent work items running on a single CPU need not be constrained. For these reasons use alloc_workqueue() directly, with suitable arguments, instead of create_freezeable_workqueue(), to create the runtime PM workqueue. Signed-off-by: Rafael J. Wysocki Acked-by: Tejun Heo --- diff --git a/kernel/power/main.c b/kernel/power/main.c index 62b0bc6e4983..0a28d4db3597 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -308,7 +308,7 @@ EXPORT_SYMBOL_GPL(pm_wq); static int __init pm_start_workqueue(void) { - pm_wq = create_freezeable_workqueue("pm"); + pm_wq = alloc_workqueue("pm", WQ_FREEZEABLE, 0); return pm_wq ? 0 : -ENOMEM; }