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

Commit 6ee025c0 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: don't active migrate tasks to CPUs in the same cluster



energy_aware_wake_cpu() can choose a CPU other than previous CPU for
reasons.  When it's used at energy_aware_wake_cpu(), we have to avoid
unwanted active migration within the same cluster and allow only
inter cluster upmigration.

Check with CPU's capacity and allow inter cluster upmigration only.

Change-Id: I6a1378ed39601078590e300d065f33fe6a81b178
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 77a47ccc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12319,7 +12319,7 @@ void check_for_migration(struct rq *rq, struct task_struct *p)
			return;

		new_cpu = energy_aware_wake_cpu(p, cpu, 0);
		if (new_cpu != cpu) {
		if (capacity_orig_of(new_cpu) > capacity_orig_of(cpu)) {
			active_balance = kick_active_balance(rq, p, new_cpu);
			if (active_balance) {
				mark_reserved(new_cpu);