diff options
author | Sibi Sankar <sibis@codeaurora.org> | 2020-06-22 10:16:49 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-07-30 07:12:17 +0200 |
commit | afdb219bab58dc2935e2c16adae2b2ce2a242386 (patch) | |
tree | 0f7866ddf1691b544934f0fba11ff1c5036bb4bb /drivers/cpufreq | |
parent | cpufreq: qcom: Update the bandwidth levels on frequency change (diff) | |
download | linux-afdb219bab58dc2935e2c16adae2b2ce2a242386.tar.xz linux-afdb219bab58dc2935e2c16adae2b2ce2a242386.zip |
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>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/qcom-cpufreq-hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index aaf98333d37d..fa68fa8ebd95 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -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); |