schedutil: change reference max frequency
authorYoungtae Lee <yt0729.lee@samsung.com>
Mon, 25 Sep 2017 13:20:35 +0000 (06:20 -0700)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:26:37 +0000 (17:26 +0900)
When cpuinfo.max_frequency and policy->max is different,
This causes a bug in which the frequency increases quickly
To solve this problem, always use fixed max_frequency(cpuinfo.max_frequency)

Change-Id: I362268ebd5ffdb3e3229a414752cfb93651f2656
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
kernel/sched/cpufreq_schedutil.c

index 1a4449f59d4a3e32eb77730e7557e7a9c455cb8c..a0ae69f5fe73716b84ad236b473fc0a2b40feb7f 100644 (file)
@@ -207,7 +207,7 @@ static unsigned int get_next_freq(struct sugov_policy *sg_policy,
 {
        struct cpufreq_policy *policy = sg_policy->policy;
        unsigned int freq = arch_scale_freq_invariant() ?
-                               policy->cpuinfo.max_freq : policy->cur;
+                               policy->max : policy->cur;
 
        freq = freqvar_tipping_point(policy->cpu, freq) * util / max;