From: Matthias Kaehlcke Date: Tue, 5 Feb 2019 17:52:24 +0000 (-0800) Subject: cpufreq: qcom-hw: Register an Energy Model X-Git-Tag: v5.1-rc1~151^2~1^2~1^2~13^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dab535052f67db0ff48b1b23e714b58650d1a787;p=thirdparty%2Fkernel%2Flinux.git cpufreq: qcom-hw: Register an Energy Model 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 [ Viresh: Rebased over cpufreq related changes ] Signed-off-by: Viresh Kumar --- diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 72223536ca4ed..c647cfb1f5e60 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -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;