From d4c8f19ac458e37a20ac6c75e0fc338800e7b204 Mon Sep 17 00:00:00 2001 From: Park Bumgyu Date: Tue, 10 Apr 2018 10:24:22 +0900 Subject: [PATCH] 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 --- drivers/cpufreq/exynos-acme.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1