Hello community, here is the log from the commit of package tuned for openSUSE:Factory checked in at 2015-08-05 06:50:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tuned (Old) and /work/SRC/openSUSE:Factory/.tuned.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "tuned" Changes: -------- --- /work/SRC/openSUSE:Factory/tuned/tuned.changes 2015-07-14 17:46:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.tuned.new/tuned.changes 2015-08-05 06:50:11.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Jul 14 22:21:45 UTC 2015 - mpluskal@suse.com + +- tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch + * fixed indentation and tabs usage + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tuned.spec ++++++ --- /var/tmp/diff_new_pack.Bdraho/_old 2015-08-05 06:50:12.000000000 +0200 +++ /var/tmp/diff_new_pack.Bdraho/_new 2015-08-05 06:50:12.000000000 +0200 @@ -142,7 +142,7 @@ %patch2 -p1 %build -#The tuned daemon is written in pure Python. Nothing requires to be built. +# The tuned daemon is written in pure Python. Nothing requires to be built. # Just a hack to avoid installation in a wrong directory sed -i 's|usr/libexec/tuned|%{_libexecdir}/%{name}|' Makefile ++++++ tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch ++++++ --- /var/tmp/diff_new_pack.Bdraho/_old 2015-08-05 06:50:12.000000000 +0200 +++ /var/tmp/diff_new_pack.Bdraho/_new 2015-08-05 06:50:12.000000000 +0200 @@ -17,17 +17,17 @@ log.debug("%s is not online, skipping" % device) return None - if self._has_energy_perf_bias: -+ if self._has_cpupower is True: -+ bias_str = str(energy_perf_bias) -+ if bias_str == "performance": -+ bias_str = "0" -+ elif bias_str == "powersave": -+ bias_str = "15" -+ elif bias_str == "normal": -+ bias_str = "6" -+ cpu_id = device.lstrip("cpu") -+ self._cmd.execute(["cpupower", "-c", cpu_id, "set", "-b", bias_str]) -+ elif self._has_energy_perf_bias: ++ if self._has_cpupower is True: ++ bias_str = str(energy_perf_bias) ++ if bias_str == "performance": ++ bias_str = "0" ++ elif bias_str == "powersave": ++ bias_str = "15" ++ elif bias_str == "normal": ++ bias_str = "6" ++ cpu_id = device.lstrip("cpu") ++ self._cmd.execute(["cpupower", "-c", cpu_id, "set", "-b", bias_str]) ++ elif self._has_energy_perf_bias: if not sim: cpu_id = device.lstrip("cpu") log.info("setting energy_perf_bias '%s' on cpu '%s'" % (energy_perf_bias, device)) @@ -36,10 +36,10 @@ log.debug("%s is not online, skipping" % device) return None - if self._has_energy_perf_bias: -+ if self._has_cpupower is True: -+ cpu_id = device.lstrip("cpu") -+ retcode, lines = self._cmd.execute(["cpupower", "-c", cpu_id, "info", "-b"]) -+ elif self._has_energy_perf_bias: ++ if self._has_cpupower is True: ++ cpu_id = device.lstrip("cpu") ++ retcode, lines = self._cmd.execute(["cpupower", "-c", cpu_id, "info", "-b"]) ++ elif self._has_energy_perf_bias: cpu_id = device.lstrip("cpu") retcode, lines = self._cmd.execute(["x86_energy_perf_policy", "-c", cpu_id, "-r"]) - if retcode == 0: @@ -48,15 +48,15 @@ - if len(l) == 2: - energy_perf_bias = self._energy_perf_policy_to_human(l[1]) - break -+ else: -+ return None -+ if retcode == 0: -+ for line in lines.splitlines(): -+ if line.startswith("analyzing CPU"): -+ continue -+ l = line.split() -+ if len(l) == 2: -+ energy_perf_bias = l[1] -+ break ++ else: ++ return None ++ if retcode == 0: ++ for line in lines.splitlines(): ++ if line.startswith("analyzing CPU"): ++ continue ++ l = line.split() ++ if len(l) == 2: ++ energy_perf_bias = l[1] ++ break return energy_perf_bias