mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
24bf2ae19b
commit
35dd0208c3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue