SHA256
1
0
forked from pool/cpupower
cpupower/amd_do_not_show_amount_of_boost_states_if_zero.patch
Thomas Renninger 34ffab8694 Accepting request 907146 from home:trenn:branches:hardware
- Update (jsc#SLE-18392, jsc#SLE-18906, jsc#SLE-18393, jsc#SLE-18410):
 * turbostat          to    21.05.04
 * intel speed select to    1.10
 * cpupower           to    5.14-rcX (kernel sources state)

OBS-URL: https://build.opensuse.org/request/show/907146
OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=117
2021-07-19 13:43:20 +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
@@ -190,7 +190,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])