tools/power turbostat: add precision to --debug frequency output
authorLen Brown <len.brown@intel.com>
Thu, 12 Jan 2017 03:12:25 +0000 (22:12 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:02 +0000 (00:14 -0500)
commit710f273ba96182fd93ee8540ae06583c7d889d7c
treecf3e51d5ad33f9534fe471cc047d8a9cfee30249
parent0539ba118fe241b0d03202fda0cd19cb758b7fbd
tools/power turbostat: add precision to --debug frequency output

Add a digit of precision to the --debug output for frequency range.
This is useful when BCLK is not an integer.

old:
6 * 83 = 500 MHz max efficiency frequency
26 * 83 = 2166 MHz base frequency

new:
6 * 83.3 = 499.8 MHz max efficiency frequency
26 * 83.3 = 2165.8 MHz base frequency

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c