sched: walt: remove extra function call

In FBT, we are making an additional call to uclamp_task_util while we
have already cached that value in a local variable. Use the cached value
instead of calling the function again.

Change-Id: I05828f02570056309256907aa7fee1396134706a
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
Shaleen Agrawal 2021-04-20 13:19:38 -07:00 committed by Rishabh Bhatnagar
parent f7fe6d6749
commit c87f1e133c

View File

@ -242,7 +242,7 @@ static void walt_find_best_target(struct sched_domain *sd,
* accounting. However, the blocked utilization may be zero.
*/
wake_util = cpu_util_without(i, p);
new_util = wake_util + uclamp_task_util(p);
new_util = wake_util + min_util;
spare_wake_cap = capacity_orig - wake_util;
if (spare_wake_cap > most_spare_wake_cap) {