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

Commit 22d004c0 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/fair: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I0fb327b5a23bc7d0987c6ccf4bc97ce1af9c6746
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 3d18c71f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9421,7 +9421,8 @@ group_similar_cpu_capacity(struct sched_group *sg, struct sched_group *ref)
	long diff = sg->sgc->min_capacity - ref->sgc->min_capacity;
	long max = max(sg->sgc->min_capacity, ref->sgc->min_capacity);

	return abs(diff) < max >> 3;
	return ((abs(diff) < max >> 3) ||
		asym_cap_siblings(group_first_cpu(sg), group_first_cpu(ref)));
}

static inline enum