cpufreq: acme: update frequency-scale
authorPark Bumgyu <bumgyu.park@samsung.com>
Tue, 10 Apr 2018 01:24:22 +0000 (10:24 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:35:42 +0000 (17:35 +0900)
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 <bumgyu.park@samsung.com>
drivers/cpufreq/exynos-acme.c

index 011950c1942f82afe4d7db7f21a765902af42dcb..e0a28efbb764ad94a4a621520cae09eed986f19d 100644 (file)
@@ -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;
        }