From: Park Bumgyu Date: Tue, 10 Apr 2018 01:24:22 +0000 (+0900) Subject: cpufreq: acme: update frequency-scale X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4c8f19ac458e37a20ac6c75e0fc338800e7b204;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpufreq: acme: update frequency-scale The freq-scale is updated to adjust the amount of task uilization accumulation to the cpu frequency. In the previous kernel version, the freq-scale was updated in the cpufreq framework, but in the current version, it should be updated in the cpufreq driver Change-Id: I542898e234f3e7a4e337c96bae40b5a054fcbd97 Signed-off-by: Park Bumgyu --- diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 011950c1942f..e0a28efbb764 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -369,6 +369,7 @@ static int __exynos_cpufreq_target(struct cpufreq_policy *policy, domain->id, domain->old, target_freq); domain->old = target_freq; + arch_set_freq_scale(&domain->cpus, target_freq, policy->max); out: mutex_unlock(&domain->lock); @@ -665,6 +666,7 @@ static int exynos_cpufreq_policy_callback(struct notifier_block *nb, switch (event) { case CPUFREQ_NOTIFY: update_dm_constraint(domain, policy); + arch_set_freq_scale(&domain->cpus, domain->old, policy->max); break; }