sched/fair: Improve the scheduler

This change is for general scheduler improvement.

Change-Id: I7a84c7f7444d57f31e0859c4d39450d23421eb73
Signed-off-by: Pavankumar Kondeti <[email protected]>
This commit is contained in:
Pavankumar Kondeti 2019-09-11 12:50:58 +05:30 • committed by Gerrit - the friendly Code Review server
commit cb858f1167

View file

@ -6463,9 +6463,10 @@ static void find_best_target(struct sched_domain *sd, cpumask_t *cpus,
goto out;
/* fast path for prev_cpu */
if ((capacity_orig_of(prev_cpu) == capacity_orig_of(start_cpu)) &&
!cpu_isolated(prev_cpu) && cpu_online(prev_cpu) &&
idle_cpu(prev_cpu)) {
if (((capacity_orig_of(prev_cpu) == capacity_orig_of(start_cpu)) ||
asym_cap_siblings(prev_cpu, start_cpu)) &&
!cpu_isolated(prev_cpu) && cpu_online(prev_cpu) &&
idle_cpu(prev_cpu)) {
if (idle_get_state_idx(cpu_rq(prev_cpu)) <= 1) {
target_cpu = prev_cpu;