Merge "sched: walt: Fix stale walt CPU reservation flag"

This commit is contained in:
qctecmdr 2021-05-12 05:57:27 -07:00 • committed by Gerrit - the friendly Code Review server
commit 7909de7b54
2 changed files with 9 additions and 2 deletions

View file

@ -10443,9 +10443,16 @@ no_move:
raw_spin_unlock_irqrestore(&busiest->lock, flags);
if (active_balance) {
stop_one_cpu_nowait(cpu_of(busiest),
int ret;
ret = stop_one_cpu_nowait(cpu_of(busiest),
active_load_balance_cpu_stop, busiest,
&busiest->active_balance_work);
if (!ret) {
clear_reserved(this_cpu);
busiest->active_balance = 0;
active_balance = 0;
}
*continue_balancing = 0;
}

View file

@ -500,10 +500,10 @@ void clear_walt_request(int cpu)
raw_spin_lock_irqsave(&rq->lock, flags);
if (rq->wrq.push_task) {
clear_reserved(rq->push_cpu);
push_task = rq->wrq.push_task;
rq->wrq.push_task = NULL;
}
clear_reserved(rq->push_cpu);
rq->active_balance = 0;
raw_spin_unlock_irqrestore(&rq->lock, flags);
if (push_task)