tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL
authorLen Brown <len.brown@intel.com>
Thu, 2 Apr 2015 01:02:57 +0000 (21:02 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 18 Apr 2015 18:20:52 +0000 (14:20 -0400)
commit8a5bdf41d2c027c1e4ad62bc4f96f3fdf82070ba
tree50d4b76564cdb750b3b602dda3f35ef76a8a5cd7
parent40ee8e3b9dc8917e6077dde6a49c7a71d63b0231
tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL

turbostat --debug
...
CPUID(0x15): eax_crystal: 2 ebx_tsc: 100 ecx_crystal_hz: 0
TSC: 1200 MHz (24000000 Hz * 100 / 2 / 1000000)

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