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

Commit 6228645c authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I102a9d2a7a12a3ffe08795825eecf73cdb3ef3e8
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 5c81c0c3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -9883,9 +9883,11 @@ static struct sched_group *find_busiest_group(struct lb_env *env)
			/* TODO:don't assume same cap cpus are in same domain */
			capacity_local = capacity_orig_of(cpu_local);
			capacity_busiest = capacity_orig_of(cpu_busiest);
			if (capacity_local > capacity_busiest) {
			if ((sds.busiest->group_weight > 1) &&
				capacity_local > capacity_busiest) {
				goto out_balanced;
			} else if (capacity_local == capacity_busiest) {
			} else if (capacity_local == capacity_busiest ||
				   asym_cap_siblings(cpu_local, cpu_busiest)) {
				if (cpu_rq(cpu_busiest)->nr_running < 2)
					goto out_balanced;
			}