From 7f4f1476980b6daa90986bd34a68a44b427d68d835b13ec0d43decce0a5a39c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Mar 2020 09:54:32 +0000 Subject: [PATCH] Accepting request 782853 from home:trenn:branches:hardware - Do not show 0 boost states if boost states are supported, but could not be read from PCI registers. bsc#1165712, bsc#1164983 A amd_do_not_show_amount_of_boost_states_if_zero.patch OBS-URL: https://build.opensuse.org/request/show/782853 OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=106 --- ...ot_show_amount_of_boost_states_if_zero.patch | 17 +++++++++++++++++ cpupower.changes | 8 ++++++++ cpupower.spec | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 amd_do_not_show_amount_of_boost_states_if_zero.patch diff --git a/amd_do_not_show_amount_of_boost_states_if_zero.patch b/amd_do_not_show_amount_of_boost_states_if_zero.patch new file mode 100644 index 0000000..0ad913e --- /dev/null +++ b/amd_do_not_show_amount_of_boost_states_if_zero.patch @@ -0,0 +1,17 @@ +--- + utils/cpufreq-info.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/utils/cpufreq-info.c ++++ b/utils/cpufreq-info.c +@@ -191,7 +191,9 @@ + if (ret) + return ret; + +- printf(_(" Boost States: %d\n"), b_states); ++ if (b_states != 0) ++ printf(_(" Boost States: %d\n"), b_states); ++ + printf(_(" Total States: %d\n"), pstate_no); + for (i = 0; i < pstate_no; i++) { + if (!pstates[i]) diff --git a/cpupower.changes b/cpupower.changes index 15a836c..1d863f5 100644 --- a/cpupower.changes +++ b/cpupower.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 5 09:45:02 UTC 2020 - Thomas Renninger + +- Do not show 0 boost states if boost states are supported, but could + not be read from PCI registers. + bsc#1165712, bsc#1164983 +A amd_do_not_show_amount_of_boost_states_if_zero.patch + ------------------------------------------------------------------- Thu Jan 30 13:25:05 UTC 2020 - trenn@suse.de diff --git a/cpupower.spec b/cpupower.spec index 1d16305..d85b837 100644 --- a/cpupower.spec +++ b/cpupower.spec @@ -44,6 +44,7 @@ Patch2: rapl_monitor.patch Patch3: cpupower_exclude_kernel_Makefile.patch Patch4: cpupower-Revert-library-ABI-changes-from-commit-ae2917093fb60bdc1ed3e.patch Patch5: Correction-to-manpage-of-cpupower.patch +Patch6: amd_do_not_show_amount_of_boost_states_if_zero.patch #turbostat patches Patch22: turbostat_makefile_fix_asm_header.patch @@ -98,6 +99,7 @@ powersave module. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 cd ../turbostat-%{tsversion} %patch22 -p1