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

Commit d32a0bd1 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

sched/fair: fix comparision for unisolated candidate



commit 1117bade ("sched: Avoid
placing task on isolated prev_cpu") was intended to reset
the target_cpu when there was no cpu found and prev_cpu was
isolated.

However there is an error where instead of assignment it ends
up comparing with the isolated candidate.

Fix it.

Change-Id: Ia80a89c1074477da9c957eb870fafa7d209386b9
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 49f7d351
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7785,7 +7785,7 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,

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

out:
	return target_cpu;