* [RFC PATCH] power: move pm_qos update timeout handler to power-efficient workqueue
@ 2014-01-31 21:48 Zoran Markovic
0 siblings, 0 replies; only message in thread
From: Zoran Markovic @ 2014-01-31 21:48 UTC (permalink / raw)
To: linux-kernel
Cc: linux-pm, Shaibal Dutta, Pavel Machek, Rafael J. Wysocki,
Len Brown, Zoran Markovic
From: Shaibal Dutta <shaibal.dutta@broadcom.com>
To avoid waking up idle CPUs, allow the scheduler to select the best CPU
to handle pm_qos update timeouts. This extends idle residency times and
conserves power.
This functionality is enabled when CONFIG_WQ_POWER_EFFICIENT is selected.
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Shaibal Dutta <shaibal.dutta@broadcom.com>
[zoran.markovic@linaro.org: Rebased to latest kernel. Fixed code alignment.
Added commit message.]
Signed-off-by: Zoran Markovic <zoran.markovic@linaro.org>
---
kernel/power/qos.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 8dff9b4..5e35a3a 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -405,7 +405,8 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value,
pm_qos_array[req->pm_qos_class]->constraints,
&req->node, PM_QOS_UPDATE_REQ, new_value);
- schedule_delayed_work(&req->work, usecs_to_jiffies(timeout_us));
+ queue_delayed_work(system_power_efficient_wq,
+ &req->work, usecs_to_jiffies(timeout_us));
}
/**
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-31 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-31 21:48 [RFC PATCH] power: move pm_qos update timeout handler to power-efficient workqueue Zoran Markovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).