]> Git Repo - linux.git/commitdiff
tools/power turbostat: fix -S on UP systems
authorLen Brown <[email protected]>
Fri, 20 Jul 2018 18:47:03 +0000 (14:47 -0400)
committerLen Brown <[email protected]>
Fri, 20 Jul 2018 18:47:03 +0000 (14:47 -0400)
The -S (system summary) option failed to print any data on a 1-processor system.

Reported-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Len Brown <[email protected]>
tools/power/x86/turbostat/turbostat.c

index 4d14bbbf9b639b7152b73d75363672826fd274da..81a1df0fb5e218715aaaf0680215c55ef8db5b52 100644 (file)
@@ -1163,9 +1163,7 @@ void format_all_counters(struct thread_data *t, struct core_data *c, struct pkg_
        if (!printed || !summary_only)
                print_header("\t");
 
-       if (topo.num_cpus > 1)
-               format_counters(&average.threads, &average.cores,
-                       &average.packages);
+       format_counters(&average.threads, &average.cores, &average.packages);
 
        printed = 1;
 
This page took 0.081681 seconds and 4 git commands to generate.