linux: dont set cpupower to 'performance' on startup

This commit is contained in:
Stephan Raue 2013-10-14 13:07:30 +03:00 committed by Stefan Saraev
parent 0015659ec1
commit 03330fed8f
5 changed files with 12 additions and 33 deletions

View File

@ -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

View 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

View File

@ -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

View File

@ -1,8 +0,0 @@
[Unit]
Description=Set cpupower to ondemand
[Timer]
OnBootSec=40sec
[Install]
WantedBy=basic.target

View File

@ -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