Skip to content
Commit 3b76aeb5 authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Deepak Kumar Mishra
Browse files

sched/fair: Refactor cpu_util_without()



Except the `task has no contribution or is new` condition at the
beginning of cpu_util_without() a cpu_util_next(..., dst_cpu = -1)
call can replace the rest of the function.

The UTIL_EST related check for the special handling of the race for an
enqueued of running WF_EXEC task between select_task_rq_fair() and
load-balance's detach_task() has to be moved from cpu_util_without()
to cpu_util_next(). It was initially introduced by commit c469933e
("sched/fair: Fix cpu_util_wake() for 'execl' type workloads").

Signed-off-by: Dietmar Eggemann's avatarDietmar Eggemann <dietmar.eggemann@arm.com>
parent 62b4ad48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment