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

drivers/cpufreq: Update performance limits in EM



The cpufreq subsystem allows users to restrict the range of min/max
allowed frequencies. This can be done through:
  /sys/devices/system/cpu/cpufreq/policyX/scaling_[min|max]_freq

The Energy Aware Scheduler (EAS) relies on an Energy Model (EM) to
estimate the energy cost of placing a task on a CPU. To do a reliable
estimation, the EM must be aware of the min/max allowed frequencies.

Indeed, if the minimum allowed frequency is raised to NewMinFreq for
a policy, the cpufreq subsystem will account for this constraint when
selecting a frequency. However, the EAS currently assumes the
frequencies lower than NewMinFreq are also available. This can lead
to rigged energy estimation.

If a lower maximum frequency is set, cpufreq_update_pressure() allows
EAS to take into account this constraint. However, forbidden
frequencies should still be reflected in the EM.

Update the performance limits in the EM.

Signed-off-by: Pierre Gondois's avatarPierre Gondois <pierre.gondois@arm.com>
parent 10b23c95
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