From ae0873724e77c6b6e183178230439bcf136e8ffa Mon Sep 17 00:00:00 2001 From: basebuilder_pel7x64builder0 Date: Tue, 5 Jun 2018 15:37:02 +0200 Subject: [PATCH] kernel add cpupower files Signed-off-by: basebuilder_pel7x64builder0 --- SOURCES/cpupower.config | 3 +++ SOURCES/cpupower.service | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 SOURCES/cpupower.config create mode 100644 SOURCES/cpupower.service diff --git a/SOURCES/cpupower.config b/SOURCES/cpupower.config new file mode 100644 index 00000000..8629a4a3 --- /dev/null +++ b/SOURCES/cpupower.config @@ -0,0 +1,3 @@ +# See 'cpupower help' and cpupower(1) for more info +CPUPOWER_START_OPTS="frequency-set -g performance" +CPUPOWER_STOP_OPTS="frequency-set -g ondemand" diff --git a/SOURCES/cpupower.service b/SOURCES/cpupower.service new file mode 100644 index 00000000..5f10ab7e --- /dev/null +++ b/SOURCES/cpupower.service @@ -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 +ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS + +[Install] +WantedBy=multi-user.target