Accepting request 542238 from Base:System

OBS-URL: https://build.opensuse.org/request/show/542238
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tuned?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2017-11-17 09:55:56 +00:00 committed by Git OBS Bridge
commit 51b5eeff7e
3 changed files with 30 additions and 0 deletions

20
check_for_cpupower.patch Normal file
View File

@ -0,0 +1,20 @@
Index: tuned-2.8.0/tuned/plugins/plugin_cpu.py
===================================================================
--- tuned-2.8.0.orig/tuned/plugins/plugin_cpu.py
+++ tuned-2.8.0/tuned/plugins/plugin_cpu.py
@@ -18,12 +18,15 @@ class CPULatencyPlugin(base.Plugin):
Plugin for tuning CPU options. Powersaving, governor, required latency, etc.
"""
+ CPUPOWER_PATH = "/usr/bin/cpupower"
+
def __init__(self, *args, **kwargs):
super(self.__class__, self).__init__(*args, **kwargs)
self._has_pm_qos = True
self._has_energy_perf_bias = True
self._has_intel_pstate = False
+ self._has_cpupower = os.path.isfile(self.CPUPOWER_PATH) and os.access(self.CPUPOWER_PATH, os.X_OK)
self._min_perf_pct_save = None
self._max_perf_pct_save = None

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Nov 16 09:55:47 UTC 2017 - jloeser@suse.com
- check for `cpupower` binary and set attribute correctly (bsc#1055070)
- added patch:
* check_for_cpupower.patch
-------------------------------------------------------------------
Fri Jul 07 15:07:04 UTC 2017 - fschnizlein@suse.com

View File

@ -37,6 +37,7 @@ Patch1: use-cpupower-for-intel-perf-bias.patch
Patch2: fix-desktop-category.patch
Patch3: remove-unnecessary-shebangs.patch
Patch4: fix-glade-file-permission.patch
Patch5: check_for_cpupower.patch
# Do not own standard directories
BuildRequires: bash-completion
@ -152,6 +153,7 @@ instead of fewer large ones).
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
# The tuned daemon is written in pure Python. Nothing requires to be built.