mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #4201 from stefansaraev/cpufreq-init
move 'set ondemand threshold' to init
This commit is contained in:
commit
bd0c82557f
@ -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
|
||||
}
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user