mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
projects/WeTek_Play/initramfs: fix and cleanup platform-init script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
661731e1d6
commit
4975d2836d
@ -63,12 +63,7 @@ for arg in $(cat /proc/cmdline); do
|
||||
done
|
||||
|
||||
# Boot with performance governor, then switch to the governor specified in the kernel command line
|
||||
cpu_idx=0
|
||||
while [ $cpu_idx -lt 128 ]; do
|
||||
cpufreq="/sys/devices/system/cpu/cpu$cpu_idx/cpufreq"
|
||||
if [ ! -d "$cpufreq" ]; then
|
||||
break
|
||||
fi
|
||||
for cpufreq in /sys/devices/system/cpu/cpu[0-9]*/cpufreq; do
|
||||
if [ -n "$scaling_governor" ]; then
|
||||
echo "$scaling_governor" > "$cpufreq/scaling_governor"
|
||||
fi
|
||||
@ -78,5 +73,4 @@ while [ $cpu_idx -lt 128 ]; do
|
||||
if [ -n "$scaling_max_freq" ]; then
|
||||
echo "$scaling_max_freq" > "$cpufreq/scaling_max_freq"
|
||||
fi
|
||||
cpu_idx=`expr $cpu_idx + 1`
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user