diff options
author | Len Brown <len.brown@intel.com> | 2018-07-20 14:47:03 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2018-07-20 14:47:03 -0400 |
commit | 9d83601a9cc1884d1b5706ee2acc661d558c6838 (patch) | |
tree | c4d8875d159b695ed707113a9bbf2f851960ce35 /tools | |
parent | 32e7024eab4c703b2f2fb362380c93be8f1949e3 (diff) |
tools/power turbostat: fix -S on UP systems
The -S (system summary) option failed to print any data on a 1-processor system.
Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 4d14bbbf9b63..81a1df0fb5e2 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -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; |