Disable fast switch when the icc paths required for scaling ddr/l3 are populated. Signed-off-by: Sibi Sankar <sibis@xxxxxxxxxxxxxx> --- drivers/cpufreq/qcom-cpufreq-hw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 4fb489b69bc61..4b2c23dab3728 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -316,7 +316,9 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) dev_pm_opp_of_register_em(policy->cpus); - policy->fast_switch_possible = true; + ret = dev_pm_opp_get_path_count(cpu_dev); + if (ret <= 0) + policy->fast_switch_possible = true; return 0; error: -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project