Merge "sched/walt: Additional load balancing checks"

This commit is contained in:
qctecmdr 2023-01-07 02:40:58 -08:00 committed by Gerrit - the friendly Code Review server
commit 74422ab5a2

View File

@ -685,11 +685,13 @@ void walt_lb_tick(struct rq *rq)
if (new_cpu < 0)
goto out_unlock;
/* prevent active task migration to busy or same/lower capacity CPU */
if (!available_idle_cpu(new_cpu) || !check_for_higher_capacity(new_cpu, prev_cpu))
goto out_unlock;
if (!is_min_cluster_cpu(prev_cpu) && !task_fits_max(p, new_cpu))
goto out_unlock;
raw_spin_lock(&rq->__lock);
if (rq->active_balance) {
raw_spin_unlock(&rq->__lock);