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

Commit 9fff4080 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/fair: Don't consider isolated CPUs in find_best_target()



Check if a CPU is isolated or not before considering it as a
candidate CPU in find_best_target(). Another non isolated CPU
is selected for user space tasks later but kernel threads
wake up isolated CPUs unnecessarily.

Change-Id: I6f888e66716d68bbadc68938121705ada32a904c
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 1d82b5e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7006,7 +7006,7 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
			unsigned long capacity_orig = capacity_orig_of(i);
			unsigned long wake_util, new_util, new_util_cuml;

			if (!cpu_online(i))
			if (!cpu_online(i) || cpu_isolated(i))
				continue;

			/*