mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
6de3503fe6
commit
52d603a711
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user