summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViolet Purcell <vimproved@inventati.org>2023-10-08 14:23:08 -0400
committerYixun Lan <dlan@gentoo.org>2023-10-09 06:22:41 +0000
commit85ef6cd085ca1f1fe78ae73cdebae3640ca78f53 (patch)
tree8c06063aca768d4ce2bcee13ee9fa14725e28d30 /sys-power/throttled/files
parentapp-text/djvu: Stabilize 3.5.28-r4 ppc64, #915455 (diff)
downloadgentoo-85ef6cd085ca1f1fe78ae73cdebae3640ca78f53.tar.gz
gentoo-85ef6cd085ca1f1fe78ae73cdebae3640ca78f53.tar.bz2
gentoo-85ef6cd085ca1f1fe78ae73cdebae3640ca78f53.zip
sys-power/throttled: new package, add 0.10.0
add kernel config check, but only make it as a warning rename openrc script file to throttled.initd Closes: https://github.com/gentoo/gentoo/pull/33252/ Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'sys-power/throttled/files')
-rw-r--r--sys-power/throttled/files/throttled.initd5
-rw-r--r--sys-power/throttled/files/throttled.service11
2 files changed, 16 insertions, 0 deletions
diff --git a/sys-power/throttled/files/throttled.initd b/sys-power/throttled/files/throttled.initd
new file mode 100644
index 000000000000..efe8b6a7e151
--- /dev/null
+++ b/sys-power/throttled/files/throttled.initd
@@ -0,0 +1,5 @@
+#!/sbin/openrc-run
+command="/usr/bin/throttled"
+pidfile="/run/throttled.pid"
+description="Stop Intel throttling"
+command_background="yes"
diff --git a/sys-power/throttled/files/throttled.service b/sys-power/throttled/files/throttled.service
new file mode 100644
index 000000000000..5b7decc435b0
--- /dev/null
+++ b/sys-power/throttled/files/throttled.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Stop Intel throttling
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/throttled
+# Setting PYTHONUNBUFFERED is necessary to see the output of this service in the journal
+Environment=PYTHONUNBUFFERED=1
+
+[Install]
+WantedBy=multi-user.target