Hello community, here is the log from the commit of package tuned for openSUSE:Factory checked in at 2017-11-17 10:55:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tuned (Old) and /work/SRC/openSUSE:Factory/.tuned.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tuned" Fri Nov 17 10:55:56 2017 rev:14 rq:542238 version:2.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tuned/tuned.changes 2017-08-16 16:11:03.167793783 +0200 +++ /work/SRC/openSUSE:Factory/.tuned.new/tuned.changes 2017-11-17 11:00:33.751495831 +0100 @@ -1,0 +2,8 @@ +Thu Nov 16 09:55:47 UTC 2017 - [email protected] + +- check for `cpupower` binary and set attribute correctly (bsc#1055070) + +- added patch: + * check_for_cpupower.patch + +------------------------------------------------------------------- New: ---- check_for_cpupower.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tuned.spec ++++++ --- /var/tmp/diff_new_pack.LrZ5MG/_old 2017-11-17 11:00:34.523467577 +0100 +++ /var/tmp/diff_new_pack.LrZ5MG/_new 2017-11-17 11:00:34.523467577 +0100 @@ -37,6 +37,7 @@ 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 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build # The tuned daemon is written in pure Python. Nothing requires to be built. ++++++ check_for_cpupower.patch ++++++ 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
