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

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

Merge "sched: fair: Stop running idle_balance on active migration kick"

parents f56975ee d39adbbc
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -11474,10 +11474,11 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf)
		update_next_balance(sd, &next_balance);

		/*
		 * Stop searching for tasks to pull if there are
		 * now runnable tasks on this rq.
		 * Stop searching for tasks to pull if there are now runnable
		 * tasks on this rq or if active migration kicked in.
		 */
		if (pulled_task || this_rq->nr_running > 0)
		if (pulled_task || this_rq->nr_running > 0 ||
		    !continue_balancing)
			break;
	}
	rcu_read_unlock();