tools/power turbostat: decode BXT TSC frequency via CPUID
authorLen Brown <len.brown@intel.com>
Wed, 6 Apr 2016 21:15:57 +0000 (17:15 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:18:35 +0000 (22:18 +0200)
commite8efbc80db5e824ce2382d5e65429b6b493e71e2
tree12b286bf50be919530d7b40fb4c2fc3c8fdcc888
parente4085d543e256aff6606ba99ed257f7c06685f3b
tools/power turbostat: decode BXT TSC frequency via CPUID

Hard-code BXT ART to 19200MHz, so turbostat --debug
can fully enumerate TSC:

CPUID(0x15): eax_crystal: 3 ebx_tsc: 186 ecx_crystal_hz: 0
TSC: 1190 MHz (19200000 Hz * 186 / 3 / 1000000)

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/x86/turbostat/turbostat.c