mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
bcm2835-driver: convert cpu threshold setting to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
66b75c814b
commit
5708fe10c6
@ -78,6 +78,7 @@ makeinstall_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
enable_service bcm2835-threshold.service
|
||||||
enable_service framebuffer.service
|
enable_service framebuffer.service
|
||||||
enable_service vcfiled.service
|
enable_service vcfiled.service
|
||||||
}
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Set onedemand threshold
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
ConditionPathExists=/sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/sh -c 'echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold'
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
@ -28,11 +28,6 @@ progress "set cpu's to full power"
|
|||||||
printf "performance" > $i
|
printf "performance" > $i
|
||||||
done 2>/dev/null
|
done 2>/dev/null
|
||||||
|
|
||||||
progress "set onedemand threshold"
|
|
||||||
if [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
|
|
||||||
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
(
|
||||||
usleep 40000000
|
usleep 40000000
|
||||||
progress "set cpu's to 'ondemand'"
|
progress "set cpu's to 'ondemand'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user