Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 10f7dc07 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

sched/fair: dont run energy calculation unless necessary



The placement code calls find_best_target() to find the next cpu,
and if possible a backup cpu. After that it does an energy
evaluation between next, backup and prev cpu.

When find_best_target() finds the next or backup the same
as prev, we unnecessarily account for the same cpu twice
in energy evaluation.

So, drop the backup if its same as prev. If the next cpu
is same as the prev, make backup the next candidate.

Change-Id: Ia2dc0c1b059ad515d99e7d66556795b24d30629c
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 239b188c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment