Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e685a28 authored by Steve Muckle's avatar Steve Muckle Committed by Andres Oportus
Browse files

ANDROID: sched/cpufreq: fix tunables for schedfreq governor



The schedfreq governor does not currently handle cpufreq drivers which
use a global set of tunables (!have_governor_per_policy).

For example on x86 and using the acpi cpufreq driver, doing this

  cat /sys/devices/system/cpu/cpufreq/sched/up_throttle_nsec

will result in a bad pointer access.

Update the tunable code using the upstream schedutil tunable code by
Rafael Wysocki as a guide.

Includes a partial backport of the reorganized cpufreq tunable
infrastructure.

Change-Id: I7e6f8de1dac297077ad43f37dd2f6ddbfe921c98
Signed-off-by: default avatarSteve Muckle <smuckle@linaro.org>
[fixed cherry-pick issue]
Signed-off-by: default avatarJuri Lelli <juri.lelli@arm.com>
Signed-off-by: default avatarQuentin Perret <quentin.perret@arm.com>
parent 682c1e36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment