mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
sched: walt: Move spare_cap calculation
spare_cap is being calculated prior to idle_cpu evaluation. If an idle cpu is found, then we have no need to go through this operation. As such, move the computation to after idle cpu evaluation. Change-Id: I86ff39909f2f0cb096ac39d02b6171838c257357 Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
parent
c87f1e133c
commit
4bc53e5700
|
|
@ -263,13 +263,6 @@ static void walt_find_best_target(struct sched_domain *sd,
|
|||
if (new_util > capacity_orig)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Pre-compute the maximum possible capacity we expect
|
||||
* to have available on this CPU once the task is
|
||||
* enqueued here.
|
||||
*/
|
||||
spare_cap = capacity_orig - new_util;
|
||||
|
||||
/*
|
||||
* Find an optimal backup IDLE CPU for non latency
|
||||
* sensitive tasks.
|
||||
|
|
@ -313,6 +306,13 @@ static void walt_find_best_target(struct sched_domain *sd,
|
|||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Compute the maximum possible capacity we expect
|
||||
* to have available on this CPU once the task is
|
||||
* enqueued here.
|
||||
*/
|
||||
spare_cap = capacity_orig - new_util;
|
||||
|
||||
/*
|
||||
* Try to spread the rtg high prio tasks so that they
|
||||
* don't preempt each other. This is a optimisitc
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user