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

Commit 0d517930 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Gerrit - the friendly Code Review server
Browse files

sched/walt: improve the scheduler



This change is for general scheduler improvement.

Change-Id: Ia62cb98734eeabe1f045e6d3e2081b7c57366aaa
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
[clingutla@codeaurora.org: Resolved merge conflicts]
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 38d64b95
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7487,7 +7487,8 @@ static int select_energy_cpu_brute(struct task_struct *p, int prev_cpu, int sync

	if (fbt_env.placement_boost || fbt_env.need_idle ||
			fbt_env.avoid_prev_cpu || (rtg_target &&
			!cpumask_test_cpu(prev_cpu, rtg_target))) {
			(!cpumask_test_cpu(prev_cpu, rtg_target) ||
				cpumask_test_cpu(next_cpu, rtg_target)))) {
		target_cpu = next_cpu;
		goto out;
	}