cpufreq: qcom: Disable fast switch when scaling DDR/L3

Disable fast switch when the opp-tables required for scaling DDR/L3
are populated.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
Sibi Sankar 2020-06-22 13:46:49 +05:30 committed by Viresh Kumar
parent 51c843cf77
commit afdb219bab
1 changed files with 1 additions and 2 deletions

View File

@ -159,6 +159,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
dev_err(cpu_dev, "Invalid opp table in device tree\n");
return ret;
} else {
policy->fast_switch_possible = true;
icc_scaling_enabled = false;
}
@ -308,8 +309,6 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
dev_pm_opp_of_register_em(policy->cpus);
policy->fast_switch_possible = true;
return 0;
error:
devm_iounmap(dev, base);