mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +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
|
done
|
||||||
|
|
||||||
# Boot with performance governor, then switch to the governor specified in the kernel command line
|
# Boot with performance governor, then switch to the governor specified in the kernel command line
|
||||||
cpu_idx=0
|
for cpufreq in /sys/devices/system/cpu/cpu[0-9]*/cpufreq; do
|
||||||
while [ $cpu_idx -lt 128 ]; do
|
|
||||||
cpufreq="/sys/devices/system/cpu/cpu$cpu_idx/cpufreq"
|
|
||||||
if [ ! -d "$cpufreq" ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ -n "$scaling_governor" ]; then
|
if [ -n "$scaling_governor" ]; then
|
||||||
echo "$scaling_governor" > "$cpufreq/scaling_governor"
|
echo "$scaling_governor" > "$cpufreq/scaling_governor"
|
||||||
fi
|
fi
|
||||||
@ -78,5 +73,4 @@ while [ $cpu_idx -lt 128 ]; do
|
|||||||
if [ -n "$scaling_max_freq" ]; then
|
if [ -n "$scaling_max_freq" ]; then
|
||||||
echo "$scaling_max_freq" > "$cpufreq/scaling_max_freq"
|
echo "$scaling_max_freq" > "$cpufreq/scaling_max_freq"
|
||||||
fi
|
fi
|
||||||
cpu_idx=`expr $cpu_idx + 1`
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user