[RFC] PM: change pm work queue to unbounded type

Message ID 1395743742-15314-1-git-send-email-sanjay.rawat@linaro.org
State New
Headers show

Commit Message

Sanjay Singh Rawat March 25, 2014, 10:35 a.m.
pm_wq work queue is used for runtime suspend/resume work, these
functions are not bound to run on specific CPUs. Having unbounded
type will reduce the waiting time.

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
---

Need to test on a full runtime supported hardware
---
 kernel/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/kernel/power/main.c b/kernel/power/main.c
index 1d1bf63..8212528 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -622,7 +622,7 @@  EXPORT_SYMBOL_GPL(pm_wq);
 
 static int __init pm_start_workqueue(void)
 {
-	pm_wq = alloc_workqueue("pm", WQ_FREEZABLE, 0);
+	pm_wq = alloc_workqueue("pm", WQ_FREEZABLE | WQ_UNBOUND, 0);
 
 	return pm_wq ? 0 : -ENOMEM;
 }