summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2017-01-07 22:40:23 -0500
committerLen Brown <len.brown@intel.com>2017-02-25 16:52:31 -0500
commit8f6196c192f6393823e632bfb927ff1572369875 (patch)
tree95669c1cd5d0a8154b864022d6e911b040ed64b6 /tools/power
parent71616c8e936a6dd541f0627d7bf4ff09971d8ccb (diff)
downloadlinux-8f6196c192f6393823e632bfb927ff1572369875.tar.gz
linux-8f6196c192f6393823e632bfb927ff1572369875.tar.bz2
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/power')
-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;
}