cpupower/amd_do_not_show_amount_of_boost_states_if_zero.patch
Tomáš Chvátal 7f4f147698 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
2020-03-09 09:54:32 +00:00

18 lines
425 B
Diff

---
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])