mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
(wetek_play) platform_init: Assume SMP uses shared cpufreq policy for all CPUs
This commit is contained in:
parent
eda2b9b08b
commit
8a26958aed
@ -61,7 +61,8 @@ echo rm default > /sys/class/vfm/map
|
|||||||
echo add default decoder ppmgr deinterlace amvideo > /sys/class/vfm/map
|
echo add default decoder ppmgr deinterlace amvideo > /sys/class/vfm/map
|
||||||
|
|
||||||
# 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
|
||||||
for cpufreq in /sys/devices/system/cpu/cpu[0-9]*/cpufreq; do
|
# Assume SMP uses shared cpufreq policy for all CPUs
|
||||||
|
cpufreq="/sys/devices/system/cpu/cpu0/cpufreq"
|
||||||
if [ -n "$scaling_governor" ]; then
|
if [ -n "$scaling_governor" ]; then
|
||||||
echo "$scaling_governor" > "$cpufreq/scaling_governor"
|
echo "$scaling_governor" > "$cpufreq/scaling_governor"
|
||||||
fi
|
fi
|
||||||
@ -70,5 +71,5 @@ for cpufreq in /sys/devices/system/cpu/cpu[0-9]*/cpufreq; do
|
|||||||
fi
|
fi
|
||||||
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"
|
||||||
|
echo "$scaling_max_freq" > "$cpufreq/scaling_dflt_freq"
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user