Skip to content

Commit

Permalink
cpufreq: qcom-hw: Register an Energy Model
Browse files Browse the repository at this point in the history
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>
[ Viresh: Rebased over cpufreq related changes ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
  • Loading branch information
Matthias Kaehlcke authored and Viresh Kumar committed Feb 8, 2019
1 parent 7c139d3 commit dab5350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/qcom-cpufreq-hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,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;
Expand Down

0 comments on commit dab5350

Please sign in to comment.