init: set ondemand up_threshold for multi-cluster CPUs

For multi-cluster CPUs (e.g. Amlogic S912) there is a separate
policy for each CPU cluster. Add a case in init script to cover
setting up_threshold for all clusters.
This commit is contained in:
kszaq 2019-04-22 22:00:01 +02:00
parent 6de3503fe6
commit 52d603a711

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