Merge pull request #3446 from kszaq/ondemand_multicluster

init: set ondemand up_threshold for multi-cluster CPUs
This commit is contained in:
Christian Hewitt 2019-04-23 18:23:27 +04:00 committed by GitHub
commit d389eae9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -933,6 +933,10 @@ 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