Merge pull request #4201 from stefansaraev/cpufreq-init

move 'set ondemand threshold' to init
This commit is contained in:
Stefan Saraev 2015-06-17 19:34:44 +03:00
commit bd0c82557f
3 changed files with 5 additions and 13 deletions

View File

@ -195,6 +195,4 @@ makeinstall_init() {
post_install() {
mkdir -p $INSTALL/lib/firmware/
ln -sf /storage/.config/firmware/ $INSTALL/lib/firmware/updates
enable_service cpufreq-threshold.service
}

View File

@ -1,11 +0,0 @@
[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

@ -60,6 +60,11 @@
# hide kernel log messages on console
echo '1 4 1 7' > /proc/sys/kernel/printk
# set ondemand up_threshold
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ] ; then
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
fi
# run platform_init script if exists
if [ -f "./platform_init" ]; then
./platform_init