Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5754feb3 authored by Syed Rameez Mustafa's avatar Syed Rameez Mustafa Committed by Joonwoo Park
Browse files

sched: report group load to the cpufreq



Group load contains the CPU load corresponding to colocated tasks.
This load is tracked separately from the non-colocated tasks that
form part of the runqueue prev_runnable_sum. Report the sum of
grouped and non grouped load to cpufreq so that frequency can be
set properly based on total load.

Change-Id: I685a41cbe53dca578caec69376c276f5cf480d45
Signed-off-by: default avatarSyed Rameez Mustafa <rameezmustafa@codeaurora.org>
parent db404fc1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1799,7 +1799,9 @@ cpu_util_freq(int cpu, struct sched_walt_cpu_load *walt_load)

#ifdef CONFIG_SCHED_WALT
	if (!walt_disabled && sysctl_sched_use_walt_cpu_util) {
		util = freq_policy_load(rq, rq->prev_runnable_sum);
		util = rq->prev_runnable_sum +
		       rq->grp_time.prev_runnable_sum;
		util = freq_policy_load(rq, util);
		util = div64_u64(util,
				 sched_ravg_window >> SCHED_CAPACITY_SHIFT);