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

Commit 05234df7 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: update_rq_clock after nr_running check in load balance path"

parents e447f091 b5d52215
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -10153,7 +10153,6 @@ static int load_balance(int this_cpu, struct rq *this_rq,

more_balance:
		rq_lock_irqsave(busiest, &rf);
		update_rq_clock(busiest);

		/* The world might have changed. Validate assumptions */
		if (busiest->nr_running <= 1) {
@@ -10161,6 +10160,9 @@ static int load_balance(int this_cpu, struct rq *this_rq,
			env.flags &= ~LBF_ALL_PINNED;
			goto no_move;
		}

		update_rq_clock(busiest);

		/*
		 * cur_ld_moved - load moved in current iteration
		 * ld_moved     - cumulative load moved across iterations