mirror of
https://github.com/libretro/Lakka.git
synced 2024-11-30 11:30:33 +00:00
linux: dont set cpupower to 'performance' on startup
This commit is contained in:
parent
0015659ec1
commit
03330fed8f
@ -47,5 +47,4 @@ if [ "$PERF_SUPPORT" = "yes" -a "$DEVTOOLS" = "yes" ]; then
|
||||
cp -rP $PKG_BUILD/tools/perf/scripts/python/* $INSTALL/usr/libexec/perf-core/scripts/python/
|
||||
fi
|
||||
|
||||
enable_service cpupower-start.service
|
||||
enable_service cpupower-end.timer
|
||||
enable_service cpufreq-threshold.service
|
||||
|
11
packages/linux/system.d/cpufreq-threshold.service
Normal file
11
packages/linux/system.d/cpufreq-threshold.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Set ondemand threshold
|
||||
DefaultDependencies=false
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/bin/sh -c 'echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Set cpupower to ondemand
|
||||
DefaultDependencies=false
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/bin/sh -c 'for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do printf "ondemand" > $i; done'
|
||||
ExecStartPost=-/bin/sh -c 'echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
@ -1,8 +0,0 @@
|
||||
[Unit]
|
||||
Description=Set cpupower to ondemand
|
||||
|
||||
[Timer]
|
||||
OnBootSec=40sec
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Set cpupower to performance
|
||||
DefaultDependencies=false
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/bin/sh -c 'for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do printf "performance" > $i; done'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
Loading…
Reference in New Issue
Block a user