]> www.infradead.org Git - nvme.git/commit
tools/power turbostat: Fix unc freq columns not showing with '-q' or '-l'
authorAdam Hawley <adam.james.hawley@intel.com>
Wed, 22 May 2024 13:27:21 +0000 (16:27 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 28 Jun 2024 03:53:27 +0000 (23:53 -0400)
commitc5120a3356755f9e9d2d592c1347f3b9ff4022a7
tree9e919af5f71f88816fe232d67aaf1fae68c7bf38
parentebb5b260af67c677700cd51be6845c2cab3edfbd
tools/power turbostat: Fix unc freq columns not showing with '-q' or '-l'

Commit 78464d7681f7 ("tools/power turbostat: Add columns for clustered
uncore frequency") introduced 'probe_intel_uncore_frequency_cluster()'
in a way which prevents printing uncore frequency columns if either of
the '-q' or '-l' options are used. Systems which do not have multiple
uncore frequencies per package are unaffected by this regression.

Fix the function so that uncore frequency columns are shown when either
the '-l' or '-q' option is used by checking if 'quiet' is true after
adding counters for the uncore frequency columns.

Fixes: 78464d7681f7 ("tools/power turbostat: Add columns for clustered uncore frequency")
Signed-off-by: Adam Hawley <adam.james.hawley@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c