mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
f7fe6d6749
commit
c87f1e133c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user