summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-09-20 19:44:17 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2010-10-17 01:57:42 +0200
commitbcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944 (patch)
tree0eaccca57b57868046afbbd52b33101359b01daf /kernel
parentede890c2c069d611ece0e184103a6b9236ce416a (diff)
downloadop-kernel-dev-bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944.zip
op-kernel-dev-bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944.tar.gz
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 <rjw@sisk.pl> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 62b0bc6..0a28d4d 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;
}
OpenPOWER on IntegriCloud