summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2017-01-08 04:40:23 +0100
committerLen Brown <len.brown@intel.com>2017-02-25 22:52:31 +0100
commit8f6196c192f6393823e632bfb927ff1572369875 (patch)
tree95669c1cd5d0a8154b864022d6e911b040ed64b6 /tools
parenttools/power turbostat: decode Baytrail CC6 and MC6 demotion configuration (diff)
downloadlinux-8f6196c192f6393823e632bfb927ff1572369875.tar.xz
linux-8f6196c192f6393823e632bfb927ff1572369875.zip
tools/power turbostat: Baytrail: remove debug line in quiet mode
Without --debug, a debug line was printed on Baytrail: SLM BCLK: 83.3 Mhz Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 1b762f67e3e2..9b35c9bb0489 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -3388,7 +3388,8 @@ double slm_bclk(void)
}
freq = slm_freq_table[i];
- fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq);
+ if (debug)
+ fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq);
return freq;
}