mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
Merge "sched: walt: Fix stale walt CPU reservation flag"
This commit is contained in:
commit
7909de7b54
2 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue