mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
sched: walt: Shift boost status of current task
We check if the current task running on the CPU has the highest per task boost to avoid placing task on said CPU. However, if the CPU is idle, then this check becomes unnecessary. Change-Id: I257df862ee2b344c0c602f36f254b38f61b78e55 Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
parent
4bc53e5700
commit
c79c755853
|
|
@ -250,10 +250,6 @@ static void walt_find_best_target(struct sched_domain *sd,
|
|||
most_spare_cap_cpu = i;
|
||||
}
|
||||
|
||||
if (per_task_boost(cpu_rq(i)->curr) ==
|
||||
TASK_BOOST_STRICT_MAX)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Ensure minimum capacity to grant the required boost.
|
||||
* The target CPU can be already at a capacity level higher
|
||||
|
|
@ -306,6 +302,10 @@ static void walt_find_best_target(struct sched_domain *sd,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (per_task_boost(cpu_rq(i)->curr) ==
|
||||
TASK_BOOST_STRICT_MAX)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Compute the maximum possible capacity we expect
|
||||
* to have available on this CPU once the task is
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user