diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 84ee3eb5b9..38fac29265 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -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 } diff --git a/packages/linux/system.d/cpufreq-threshold.service b/packages/linux/system.d/cpufreq-threshold.service deleted file mode 100644 index 3bebb4e262..0000000000 --- a/packages/linux/system.d/cpufreq-threshold.service +++ /dev/null @@ -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 diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 1b2a9b4e27..1afea77dfc 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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