summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-09-07 21:25:54 -0400
committerMike Gilbert <floppym@gentoo.org>2016-09-07 21:28:01 -0400
commit16ea9eebec61442474c6feb6b9a279633d8fb7cf (patch)
tree5e930eb15d2668b49a825a0a8494bf909c694f7b /sys-power/cpupower/files
parentnet-misc/openssh: Update patch to avoid hangs at exit (diff)
downloadgentoo-16ea9eebec61442474c6feb6b9a279633d8fb7cf.tar.gz
gentoo-16ea9eebec61442474c6feb6b9a279633d8fb7cf.tar.bz2
gentoo-16ea9eebec61442474c6feb6b9a279633d8fb7cf.zip
sys-power/cpupower: add cpupower-frequency-set.service
Bug: https://bugs.gentoo.org/531360
Diffstat (limited to 'sys-power/cpupower/files')
-rw-r--r--sys-power/cpupower/files/cpupower-frequency-set.service9
-rw-r--r--sys-power/cpupower/files/cpupower-frequency-set.service.conf2
2 files changed, 11 insertions, 0 deletions
diff --git a/sys-power/cpupower/files/cpupower-frequency-set.service b/sys-power/cpupower/files/cpupower-frequency-set.service
new file mode 100644
index 000000000000..2d9ef35655af
--- /dev/null
+++ b/sys-power/cpupower/files/cpupower-frequency-set.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=CPU Frequency Scaling
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/cpupower frequency-set $OPTS
+
+[Install]
+WantedBy=multiuser.target
diff --git a/sys-power/cpupower/files/cpupower-frequency-set.service.conf b/sys-power/cpupower/files/cpupower-frequency-set.service.conf
new file mode 100644
index 000000000000..969c8ab2f214
--- /dev/null
+++ b/sys-power/cpupower/files/cpupower-frequency-set.service.conf
@@ -0,0 +1,2 @@
+[Service]
+Environment="OPTS=-g ondemand"