commit 933f7b4db60d2773f3b698b0176aea718f2ae0fd
Author: Jan Palus <[email protected]>
Date:   Sat Mar 5 01:29:38 2022 +0100

    provide template unit for cpupower
    
    so it's possible to apply parameters per cluster ie
    cpupower@big/cpupower@little

 [email protected] | 13 +++++++++++++
 kernel-tools.spec |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 500939b..f0e2d55 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -32,6 +32,7 @@ Source0:      
https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
 # Source0-md5: e6680ce7c989a3efe58b51e3f3f0bf93
 Source1:       cpupower.service
 Source2:       cpupower.config
+Source3:       [email protected]
 %if "%{postver}" != ".0"
 Patch0:                
https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
 # Patch0-md5:  0e03bc49d0db9ae31a5086ec49be3768
@@ -574,6 +575,7 @@ cd linux-%{basever}
 install -d $RPM_BUILD_ROOT{/etc/sysconfig,%{systemdunitdir}}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/cpupower.service
 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpupower
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/[email protected]
 
 %ifarch %{ix86} x32
 install -p tools/power/cpupower/debug/i386/{centrino,powernow-k8}-decode 
$RPM_BUILD_ROOT%{_bindir}
diff --git a/[email protected] b/[email protected]
new file mode 100644
index 0000000..538e02f
--- /dev/null
+++ b/[email protected]
@@ -0,0 +1,13 @@
+[Unit]
+Description=Configure CPU power related settings
+After=syslog.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/sysconfig/cpupower
+ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS_%I
+ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS_%I
+
+[Install]
+WantedBy=multi-user.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/933f7b4db60d2773f3b698b0176aea718f2ae0fd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to