Skip to content
Commit 3ff6ba04 authored by Ricky Liang's avatar Ricky Liang Committed by Dietmar Eggemann
Browse files

FIXUP: sched/cpufreq_sched: Clear __sched_energy_freq only when no policy is using sched governor



The current implementation of SchedDVFS is turned off completely if a
cpufreq policy is completely offline. This is because the way the
{set|clear}_sched_energy_freq() functions are implemented only allows
the __sched_energy_freq static_key to be either 1 or 0, while there
are two possible cpufreq policies (one for each cluster) on Oak. The
__sched_energy_freq static_key acts like a switch for the SchedDVFS
hook in the CFS scheduler. So whenever a cluster is turned off, which
sets the corresponding cpufreq policy offline, will result in the
__sched_energy_freq being set to 0.

Signed-off-by: default avatarRicky Liang <jcliang@chromium.org>
parent 6b415d9c
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