]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff24a6eb552ca5a9d4741bc1a1c16f71ed835b47
treecf3e51d5ad33f9534fe471cc047d8a9cfee30249
parent78f0cd6e94ca8d9a8e88dda4e3e3bff43bd9116f
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