From fc4ca4dff7cf6252cfe803b525a1cf3c9db0648f Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Mon, 25 Sep 2017 06:20:35 -0700 Subject: [PATCH] schedutil: change reference max frequency 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 --- kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 1a4449f59d4a..a0ae69f5fe73 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -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; -- 2.20.1