linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] cpufreq: qcom-hw: Register an Energy Model
@ 2019-02-05 17:52 Matthias Kaehlcke
  2019-02-05 17:52 ` [PATCH 2/2] cpufreq: mediatek: " Matthias Kaehlcke
  2019-02-06  4:52 ` [PATCH 1/2] cpufreq: qcom-hw: " Viresh Kumar
  0 siblings, 2 replies; 6+ messages in thread
From: Matthias Kaehlcke @ 2019-02-05 17:52 UTC (permalink / raw)
  To: Rafael J . Wysocki, Viresh Kumar, Matthias Brugger
  Cc: Taniya Das, Nicolas Boichat, linux-pm, linux-kernel,
	Douglas Anderson, Quentin Perret, Matthias Kaehlcke,
	linux-mediatek, CK Hu, Eddie Huang, linux-arm-kernel

Try and register an Energy Model from qcom-cpufreq-hw to allow
interested sub-systems like the task scheduler to use the provided
information.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 drivers/cpufreq/qcom-cpufreq-hw.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index d83939a1b3d4c..a16b9dca7ea3b 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -205,6 +205,8 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
 		goto error;
 	}
 
+	dev_pm_opp_of_register_em(policy->cpus);
+
 	policy->fast_switch_possible = true;
 
 	return 0;
-- 
2.20.1.611.gfbb209baf1-goog


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-07  4:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-05 17:52 [PATCH 1/2] cpufreq: qcom-hw: Register an Energy Model Matthias Kaehlcke
2019-02-05 17:52 ` [PATCH 2/2] cpufreq: mediatek: " Matthias Kaehlcke
2019-02-06 10:13   ` Quentin Perret
2019-02-06 18:16     ` Matthias Kaehlcke
2019-02-07  4:08       ` Viresh Kumar
2019-02-06  4:52 ` [PATCH 1/2] cpufreq: qcom-hw: " Viresh Kumar

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).