Skip to content

Commit afdb219

Browse files
Sibi Sankarvireshk
authored andcommitted
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 <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 51c843c commit afdb219

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/cpufreq/qcom-cpufreq-hw.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
159159
dev_err(cpu_dev, "Invalid opp table in device tree\n");
160160
return ret;
161161
} else {
162+
policy->fast_switch_possible = true;
162163
icc_scaling_enabled = false;
163164
}
164165

@@ -308,8 +309,6 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
308309

309310
dev_pm_opp_of_register_em(policy->cpus);
310311

311-
policy->fast_switch_possible = true;
312-
313312
return 0;
314313
error:
315314
devm_iounmap(dev, base);

0 commit comments

Comments
 (0)