From 35dd0208c3525e8eb371b9f712ace01d11106ca5 Mon Sep 17 00:00:00 2001 From: Kishore Sri venkata Ganesh Bolisetty Date: Wed, 14 Oct 2020 11:37:17 -0700 Subject: [PATCH] soc: qcom: msm_perf: Allow freq updates regardless of policy If frequency update is not honored in cases where it matches to the previous update, the previous policy update may be revoked any time and desired performance may drop before the usecase completeion of the current frequency update. Change-Id: Ib626f04ecdd343b767c3e0609863a9b8d30f5187 Signed-off-by: Kishore Sri venkata Ganesh Bolisetty --- drivers/soc/qcom/msm_performance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/msm_performance.c b/drivers/soc/qcom/msm_performance.c index ff3653ac3bfa..a0d8875c4cab 100644 --- a/drivers/soc/qcom/msm_performance.c +++ b/drivers/soc/qcom/msm_performance.c @@ -229,7 +229,7 @@ static int set_cpu_min_freq(const char *buf, const struct kernel_param *kp) if (cpufreq_get_policy(&policy, i)) continue; - if (cpu_online(i) && (policy.min != i_cpu_stats->min)) { + if (cpu_online(i)) { req = &per_cpu(qos_req_min, i); if (freq_qos_update_request(req, i_cpu_stats->min) < 0) break; @@ -312,7 +312,7 @@ static int set_cpu_max_freq(const char *buf, const struct kernel_param *kp) if (cpufreq_get_policy(&policy, i)) continue; - if (cpu_online(i) && (policy.max != i_cpu_stats->max)) { + if (cpu_online(i)) { req = &per_cpu(qos_req_max, i); if (freq_qos_update_request(req, i_cpu_stats->max) < 0) break;