+13
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>