Skip to content
Commit d76192f8 authored by Juri Lelli's avatar Juri Lelli
Browse files

sched: Use energy to guide wakeup task placement



Attempt to pick most energy efficient wakeup in find_idlest_{group,
cpu}(). Finding the optimum target requires an exhaustive search
through all cpus in the groups. Instead, the target group is determined
based on load and probing the energy cost on a single cpu in each group.
The target cpu is the cpu with the lowest energy cost.

Signed-off-by: Morten Rasmussen's avatarMorten Rasmussen <morten.rasmussen@arm.com>

[juril; backported to 3.10]
As noted in "sched: Energy model functions" we here have the big
assumption that we never use load_idx != 0 for source{target}_load in
find_target_group. A WARN_ON() is added to check if we break this
assumption.
Signed-off-by: default avatarJuri Lelli <juri.lelli@arm.com>
parent 131ac58f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment