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

Commit d538e8cc authored by Maria Yu's avatar Maria Yu Committed by Gerrit - the friendly Code Review server
Browse files

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



If this runqueue have iowait task and still force newly
idle load balance, will make iowait task performance
worse. Need to do the average idle time check if
there is iowait task on this runqueue to have upcoming
iowait task have enough cpu resource.

Change-Id: I8e4dd440edbbd14d5170fbcf358bdaf5cc5b26e8
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 0abb3e81
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;

	/*