From: Youngtae Lee Date: Mon, 25 Sep 2017 13:20:35 +0000 (-0700) Subject: schedutil: change reference max frequency X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc4ca4dff7cf6252cfe803b525a1cf3c9db0648f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;