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

Commit 084ec9e5 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: EAS: bias towards prev CPU



Make task placement algorithm to bias towards previous CPU to reduce
migrations and cache bouncing.

Change-Id: I403584cb96805e9516fbdad3aeed9fbedca41b64
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 6939ca6c
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -6775,7 +6775,15 @@ static int energy_aware_wake_cpu(struct task_struct *p, int target, int sync)
						targeted_cpus = 1;
					} else if (cpu_idle_idx ==
						   min_idle_idx &&
						target_cpu_util > new_util) {
						   (target_cpu_util >
						    new_util ||
						    (target_cpu_util ==
						     new_util &&
						     (i == task_cpu(p) ||
						      (target_cpu !=
						       task_cpu(p) &&
						       target_cpu_new_util_cum >
						       new_util_cum))))) {
						min_idle_idx_cpu = i;
						target_cpu = i;
						target_cpu_util = new_util;