Merge "sched/walt: Additional load balancing checks"
This commit is contained in:
commit
74422ab5a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user