diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-09-20 13:44:17 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-10-16 19:57:42 -0400 |
commit | bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944 (patch) | |
tree | 0eaccca57b57868046afbbd52b33101359b01daf /kernel | |
parent | ede890c2c069d611ece0e184103a6b9236ce416a (diff) |
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 62b0bc6e4983..0a28d4db3597 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -308,7 +308,7 @@ EXPORT_SYMBOL_GPL(pm_wq); | |||
308 | 308 | ||
309 | static int __init pm_start_workqueue(void) | 309 | static int __init pm_start_workqueue(void) |
310 | { | 310 | { |
311 | pm_wq = create_freezeable_workqueue("pm"); | 311 | pm_wq = alloc_workqueue("pm", WQ_FREEZEABLE, 0); |
312 | 312 | ||
313 | return pm_wq ? 0 : -ENOMEM; | 313 | return pm_wq ? 0 : -ENOMEM; |
314 | } | 314 | } |