From: Andres Oportus Date: Thu, 23 Feb 2017 19:58:22 +0000 (-0800) Subject: sched/core: Fix PELT jump to max OPP upon util increase X-Git-Tag: release-20171130_firefly~4^2~100^2~33 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9955347b2ea8e0c61a6318f8f184cb282147052f;p=firefly-linux-kernel-4.4.55.git sched/core: Fix PELT jump to max OPP upon util increase Change-Id: Ic80b588ec466ef707f658dcea039fd0d6b384b63 Signed-off-by: Andres Oportus --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index da44d13f2439..e353de860bfd 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2969,9 +2969,10 @@ unsigned long sum_capacity_reqs(unsigned long cfs_cap, return total += scr->dl; } +unsigned long boosted_cpu_util(int cpu); static void sched_freq_tick_pelt(int cpu) { - unsigned long cpu_utilization = capacity_max; + unsigned long cpu_utilization = boosted_cpu_util(cpu); unsigned long capacity_curr = capacity_curr_of(cpu); struct sched_capacity_reqs *scr;