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

Commit a2e5078b 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: Avoid cpu idle to deep sleep when have active balance"

parents 69080fb4 e96bc193
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10304,6 +10304,7 @@ static int load_balance(int this_cpu, struct rq *this_rq,
				busiest->active_balance = 1;
				busiest->push_cpu = this_cpu;
				active_balance = 1;
				mark_reserved(this_cpu);
			}
			raw_spin_unlock_irqrestore(&busiest->lock, flags);

@@ -10628,6 +10629,7 @@ static int active_load_balance_cpu_stop(void *data)
	busiest_rq->active_balance = 0;
	push_task = busiest_rq->push_task;
	target_cpu = busiest_rq->push_cpu;
	clear_reserved(target_cpu);

	if (push_task)
		busiest_rq->push_task = NULL;
@@ -10638,7 +10640,6 @@ static int active_load_balance_cpu_stop(void *data)
		if (push_task_detached)
			attach_one_task(target_rq, push_task);
		put_task_struct(push_task);
		clear_reserved(target_cpu);
	}

	if (p)