sched: Highest energy aware balancing sched_domain level pointer
authorMorten Rasmussen <morten.rasmussen@arm.com>
Fri, 2 Jan 2015 17:08:52 +0000 (17:08 +0000)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:34:30 +0000 (12:34 +0000)
commit184b138bb77183ccd44e0bcb3716d92532eda2d3
tree583c2feeb786365ddb0a9f1f05e9519d525fe4dd
parente416e248104ffc575fcce258fee8246f1cd6dba1
sched: Highest energy aware balancing sched_domain level pointer

Add another member to the family of per-cpu sched_domain shortcut
pointers. This one, sd_ea, points to the highest level at which energy
model is provided. At this level and all levels below all sched_groups
have energy model data attached.

Partial energy model information is possible but restricted to providing
energy model data for lower level sched_domains (sd_ea and below) and
leaving load-balancing on levels above to non-energy-aware
load-balancing. For example, it is possible to apply energy-aware
scheduling within each socket on a multi-socket system and let normal
scheduling handle load-balancing between sockets.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/core.c
kernel/sched/sched.h