PM / Runtime: Use alloc_workqueue() for creating the PM workqueue
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 20 Sep 2010 17:44:17 +0000 (19:44 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:42 +0000 (01:57 +0200)
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 <rjw@sisk.pl>
Acked-by: Tejun Heo <tj@kernel.org>
kernel/power/main.c

index 62b0bc6e4983cfdec1a2b4feb0f34d2235781ad6..0a28d4db35972d21cba44b276f1db88ce665cc08 100644 (file)
@@ -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;
 }