mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
linux: fix setting up ondemand up_threshold value
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0e98d3eb50
commit
66dd06f584
@ -28,16 +28,17 @@ progress "set cpu's to full power"
|
|||||||
printf "performance" > $i
|
printf "performance" > $i
|
||||||
done 2>/dev/null
|
done 2>/dev/null
|
||||||
|
|
||||||
progress "set onedemand threshold"
|
|
||||||
if [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
|
|
||||||
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
(
|
||||||
usleep 40000000
|
usleep 40000000
|
||||||
progress "set cpu's to 'ondemand'"
|
progress "set cpu's to 'ondemand'"
|
||||||
for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do
|
for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do
|
||||||
printf "ondemand" > $i
|
printf "ondemand" > $i
|
||||||
done 2>/dev/null
|
done 2>/dev/null
|
||||||
|
|
||||||
|
progress "set onedemand threshold"
|
||||||
|
if [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
|
||||||
|
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||||
|
fi
|
||||||
|
|
||||||
)&
|
)&
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user