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 <bsrivenk@codeaurora.org>
This commit is contained in:
Kishore Sri venkata Ganesh Bolisetty 2020-10-14 11:37:17 -07:00
commit 35dd0208c3

View file

@ -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;