Skip to content
Commit 7c9dc2f6 authored by Pierre Gondois's avatar Pierre Gondois
Browse files

sched: Allocate pd_cache when EAS is enabled



In find_energy_efficient_cpu(), the energy consumption of each
perf_domain is computed without the task (base energy) and with
the task (placed on the max_spare_cap_cpu) placed in the perf_domain.
If the prev_cpu of the task is available, it is also considered.

To compute the power consumption of a perf_domain, the frequency
utilization, used to predict the OPP of the perf_domain is computed.
An energy utilization is also computed, representing the time spent
running by the CPU.

For each perf_domain, for each power estimation, these two
utilization values are re-computed, although being invariant when the
task is not placed on the probed CPU.

This patch allocates caches when EAS is enabled to allow the
find_energy_efficient_cpu() function to save these two utilization
values and re-use them.

Signed-off-by: default avatarPierre Gondois <Pierre.Gondois@arm.com>
parent 19c329f6
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