Skip to content

Commit 5d939fb

Browse files
committed
tools/power turbostat: regression fix: --show C1E%
The new default idle counter groupings broke "--show C1E%" (or any other C-state %) Also delete a stray debug printf from the same offending commit. Reported-by: Zhang Rui <[email protected]> Fixes: ec4acd3 ("tools/power turbostat: disable "cpuidle" invocation counters, by default") Signed-off-by: Len Brown <[email protected]>
1 parent 42fd37d commit 5d939fb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,6 @@ unsigned long long bic_lookup(char *name_list, enum show_hide_mode mode)
24292429

24302430
}
24312431
if (i == MAX_BIC) {
2432-
fprintf(stderr, "deferred %s\n", name_list);
24332432
if (mode == SHOW_LIST) {
24342433
deferred_add_names[deferred_add_index++] = name_list;
24352434
if (deferred_add_index >= MAX_DEFERRED) {
@@ -10537,9 +10536,6 @@ void probe_cpuidle_residency(void)
1053710536
int min_state = 1024, max_state = 0;
1053810537
char *sp;
1053910538

10540-
if (!DO_BIC(BIC_pct_idle))
10541-
return;
10542-
1054310539
for (state = 10; state >= 0; --state) {
1054410540

1054510541
sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", base_cpu, state);

0 commit comments

Comments
 (0)