diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-09-20 19:44:17 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-10-17 01:57:42 +0200 |
commit | bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944 (patch) | |
tree | 0eaccca57b57868046afbbd52b33101359b01daf /kernel | |
parent | ede890c2c069d611ece0e184103a6b9236ce416a (diff) | |
download | op-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.c | 2 |
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; } |