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

Commit 783894bc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Avoid force newly idle load balance if have iowait task"

parents 4f0730b4 d538e8cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -11292,7 +11292,9 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf)
	 * Force higher capacity CPUs doing load balance, when the lower
	 * capacity CPUs has some misfit tasks.
	 */
	if (!is_min_capacity_cpu(this_cpu) && min_cap_cluster_has_misfit_task())
	if (!is_min_capacity_cpu(this_cpu) &&
		(atomic_read(&this_rq->nr_iowait) == 0) &&
		min_cap_cluster_has_misfit_task())
		force_lb = true;

	/*