mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
cpufreq: sched: WALT: don't apply capacity margin twice
With WALT all the scheduler classes' load are accounted in scr->cfs and update_cpu_capacity_request() adds capacity margin. At present, at tick path, scheduler also adds capacity margin. Therefore the margin applied twice. Fix such error by using margin applied cpu utilization only for checking whether frequency increase is needed. Change-Id: Id7d8cc73b2e4eec70b274ca66e09bb0b16bf6f09 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org> (trivial rebase conflict) Signed-off-by: Chris Redpath <chris.redpath@arm.com>
This commit is contained in:
committed by
Amit Pundir
parent
9305d63017
commit
d6614c4e2c
@@ -2999,13 +2999,13 @@ static void sched_freq_tick_walt(int cpu)
|
||||
return sched_freq_tick_pelt(cpu);
|
||||
|
||||
/*
|
||||
* Add a margin to the WALT utilization.
|
||||
* Add a margin to the WALT utilization to check if we will need to
|
||||
* increase frequency.
|
||||
* NOTE: WALT tracks a single CPU signal for all the scheduling
|
||||
* classes, thus this margin is going to be added to the DL class as
|
||||
* well, which is something we do not do in sched_freq_tick_pelt case.
|
||||
*/
|
||||
cpu_utilization = add_capacity_margin(cpu_utilization);
|
||||
if (cpu_utilization <= capacity_curr)
|
||||
if (add_capacity_margin(cpu_utilization) <= capacity_curr)
|
||||
return;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user