summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2014-11-14 16:20:20 +0000
committerLeo Yan <leo.yan@linaro.org>2016-05-10 16:49:50 +0800
commit4ce990ec65231af6a148c2c0e6b4745fc1d12368 (patch)
treeaeab2bfb00ca2efa964186d6b44888923043a665 /include
parent0b3bda54d245ebcfeefc61f0ff763e76ca2a8784 (diff)
sched: Initialize energy data structures
The sched_group_energy (sge) pointer of the first sched_group (sg) in the sched_domain (sd) is initialized to point to the appropriate (in terms of sd level and cpu) sge data defined in the arch and so to the correct part of the Energy Model (EM). Energy-aware scheduling allows that a system has only EM data up to a certain sd level (so called highest energy aware balancing sd level). A check in init_sched_energy() enforces that all sd's below this sd level contain EM data. The 'int cpu' parameter of sched_domain_energy_f requires that check_sched_energy_data() makes sure that all cpus spanned by a sg are provisioned with the same EM data. This patch has also been tested with feature FORCE_SD_OVERLAP enabled. cc: Ingo Molnar <mingo@redhat.com> cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions