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

Commit e7c78283 authored by Divya Sharma's avatar Divya Sharma Committed by Visweswara Kumar
Browse files

Revert "sched: Avoid placing task on isolated prev_cpu"



This reverts commit 0cf1e01a.

Change-Id: I8945dab5da14a5209cedf0f25b6b61b4210271b7
Signed-off-by: default avatarDivya Sharma <divyash@codeaurora.org>
parent b874ceec
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -7361,7 +7361,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
	unsigned int active_cpus_count = 0;
	int prev_cpu = task_cpu(p);
	bool next_group_higher_cap = false;
	int isolated_candidate = -1;

	*backup_cpu = -1;

@@ -7422,8 +7421,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
			if (!cpu_online(i) || cpu_isolated(i))
				continue;

			if (isolated_candidate == -1)
				isolated_candidate = i;
			/*
			 * This CPU is the target of an active migration that's
			 * yet to complete. Avoid placing another task on it.
@@ -7786,11 +7783,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
		target_cpu = *backup_cpu;
		*backup_cpu = -1;
	}

	if (target_cpu == -1 && isolated_candidate != -1 &&
	    cpu_isolated(prev_cpu))
		target_cpu == isolated_candidate;

out:
	return target_cpu;
}