summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-07-17 13:09:25 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-07-17 13:09:25 +0100
commit377582782379c0e2c23fe4e5362154376b6a79e6 (patch)
tree8d9b0c598ceee0701ac5387a2a7bd5ed3c672095
downloadbsp-support-377582782379c0e2c23fe4e5362154376b6a79e6.tar.gz
Add unit to set cpu frequency governor
This unit sets the cpu frequency scaling governor to on demand.
-rw-r--r--nv-ondemand-cpufreq-governor.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/nv-ondemand-cpufreq-governor.service b/nv-ondemand-cpufreq-governor.service
new file mode 100644
index 0000000..3ea2808
--- /dev/null
+++ b/nv-ondemand-cpufreq-governor.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=NVIDIA Jetson on-demand CPU frequency scaling governor
+DefaultDependencies=no
+
+[Service]
+RemainAfterExit=yes
+ExecStart=/bin/sh -c 'echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'
+
+[Install]
+WantedBy=sysinit.target