sched/walt: Improve the scheduler

This change is for general scheduler improvement.

Change-Id: Iffd4ae221581aaa4aeb244a0cddd40a8b6aac74d
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
Abhijeet Dharmapurikar 2021-11-02 17:09:09 -07:00 committed by Rishabh Bhatnagar
parent 66317940e6
commit a9b383db70

View File

@ -205,7 +205,9 @@ static void walt_lb_check_for_rotation(struct rq *src_rq)
double_rq_lock(src_rq, dst_rq);
if (walt_fair_task(dst_rq->curr) &&
!src_rq->active_balance && !dst_rq->active_balance) {
!src_rq->active_balance && !dst_rq->active_balance &&
cpumask_test_cpu(dst_cpu, src_rq->curr->cpus_ptr) &&
cpumask_test_cpu(src_cpu, dst_rq->curr->cpus_ptr)) {
get_task_struct(src_rq->curr);
get_task_struct(dst_rq->curr);