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

Commit fee2844f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Improve no-hz idle balance kicking in misfit task scenario"

parents 24664f79 0cd30997
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -10540,6 +10540,10 @@ static inline int find_new_ilb(int type)
	rcu_read_lock();
	sd = rcu_dereference_check_sched_domain(rq->sd);
	if (sd) {
		if (energy_aware() && rq->misfit_task)
			cpumask_andnot(&cpumask, nohz.idle_cpus_mask,
				sched_domain_span(sd));
		else
			cpumask_and(&cpumask, nohz.idle_cpus_mask,
				    sched_domain_span(sd));
		cpumask_andnot(&cpumask, &cpumask,
@@ -10552,7 +10556,7 @@ static inline int find_new_ilb(int type)
		if (!energy_aware() ||
		    (capacity_orig_of(cpu) ==
		     cpu_rq(cpu)->rd->max_cpu_capacity.val ||
		     cpu_overutilized(cpu))) {
		     (cpu_overutilized(cpu) && rq->nr_running > 1))) {
			cpumask_andnot(&cpumask, nohz.idle_cpus_mask,
			    cpu_isolated_mask);
			ilb = cpumask_first(&cpumask);