mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
linux: move performance setup completly to '02_cpupower', setup up_threshold for ondemand
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
358c23f5ee
commit
5413f9f5af
@ -24,5 +24,20 @@
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
progress "set cpu's to full power"
|
||||
for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do
|
||||
printf "performance" > $i
|
||||
done
|
||||
|
||||
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
|
||||
progress "set cpu's to 'ondemand'"
|
||||
for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do
|
||||
printf "ondemand" > $i
|
||||
done
|
||||
)&
|
||||
|
||||
cpupower frequency-set -g performance > /dev/null 2>&1
|
||||
|
@ -55,12 +55,6 @@ fi
|
||||
# wait for udevadm settle to finish
|
||||
wait_for_udevadm_settle
|
||||
|
||||
# set cpu's to 'ondemand'
|
||||
( usleep 15000000
|
||||
progress "set cpu's to 'ondemand'"
|
||||
cpupower frequency-set -g ondemand > /dev/null 2>&1
|
||||
)&
|
||||
|
||||
# prevent restrating XBMC at reboot or shutdown
|
||||
LOCKDIR="/var/lock/"
|
||||
LOCKFILE="xbmc.disabled"
|
||||
|
Loading…
x
Reference in New Issue
Block a user