systemd: use a cpufreq service to configure cpu governor

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard
2019-10-11 22:07:51 +00:00
parent a182767d1e
commit f27caaddc1
4 changed files with 32 additions and 9 deletions

View File

@@ -963,15 +963,6 @@ prepare_sysroot() {
# hide kernel log messages on console
echo '1 4 1 7' > /proc/sys/kernel/printk
# set ondemand up_threshold
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
else
for f in $(ls /sys/devices/system/cpu/cpufreq/policy*/ondemand/up_threshold 2>/dev/null) ; do
echo 50 > $f
done
fi
# run platform_init script if exists
if [ -f "./platform_init" ]; then
./platform_init