Merge pull request #3896 from antonlacon/le10-systemd-cpufreq

init: move cpufreq tuning to systemd service
This commit is contained in:
MilhouseVH
2019-11-15 17:50:36 +00:00
committed by GitHub
7 changed files with 68 additions and 22 deletions

View File

@@ -966,15 +966,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