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

Try and register an Energy Model from mediatek-cpufreq to allow
interested subsystems like the task scheduler to use the provided
information.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
Changes in v2:
- register the EM after setting the cpumask
---
 drivers/cpufreq/mediatek-cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c
index eb8920d398181..5250df762814e 100644
--- a/drivers/cpufreq/mediatek-cpufreq.c
+++ b/drivers/cpufreq/mediatek-cpufreq.c
@@ -465,6 +465,8 @@ static int mtk_cpufreq_init(struct cpufreq_policy *policy)
 	policy->driver_data = info;
 	policy->clk = info->cpu_clk;
 
+	dev_pm_opp_of_register_em(policy->cpus);
+
 	return 0;
 }
 
-- 
2.20.1.611.gfbb209baf1-goog


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

* Re: [PATCH v2] cpufreq: mediatek: Register an Energy Model
  2019-02-06 18:50 [PATCH v2] cpufreq: mediatek: Register an Energy Model Matthias Kaehlcke
@ 2019-02-07  4:36 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2019-02-07  4:36 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: Rafael J . Wysocki, Matthias Brugger, linux-pm, linux-kernel,
	linux-arm-kernel, linux-mediatek, Quentin Perret, Taniya Das,
	CK Hu, Eddie Huang, Nicolas Boichat, Douglas Anderson

On 06-02-19, 10:50, Matthias Kaehlcke wrote:
> Try and register an Energy Model from mediatek-cpufreq to allow
> interested subsystems like the task scheduler to use the provided
> information.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> Changes in v2:
> - register the EM after setting the cpumask
> ---
>  drivers/cpufreq/mediatek-cpufreq.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c
> index eb8920d398181..5250df762814e 100644
> --- a/drivers/cpufreq/mediatek-cpufreq.c
> +++ b/drivers/cpufreq/mediatek-cpufreq.c
> @@ -465,6 +465,8 @@ static int mtk_cpufreq_init(struct cpufreq_policy *policy)
>  	policy->driver_data = info;
>  	policy->clk = info->cpu_clk;
>  
> +	dev_pm_opp_of_register_em(policy->cpus);
> +
>  	return 0;
>  }

Applied it after rebasing over the change in cpufreq/arm/linux-next
branch. Thanks.

-- 
viresh

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-06 18:50 [PATCH v2] cpufreq: mediatek: Register an Energy Model Matthias Kaehlcke
2019-02-07  4:36 ` 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).