]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: fix decoding for GLM, DNV, SKX turbo-ratio limits
authorLen Brown <len.brown@intel.com>
Wed, 1 Feb 2017 04:07:49 +0000 (23:07 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:20 +0000 (00:14 -0500)
commitbfd99f6a882c359a2a684deb0fc49c11f2684947
tree8841bd6ebbe54fcc5464193ad99c37dc7773c282
parent9963e0879769f5313ceed05b4d7040e26b1a50cd
tools/power turbostat: fix decoding for GLM, DNV, SKX turbo-ratio limits

Newer processors do not hard-code the the number of cpus in each bin
to {1, 2, 3, 4, 5, 6, 7, 8}  Rather, they can specify any number
of CPUS in each of the 8 bins:

eg.

...
37 * 100.0 = 3600.0 MHz max turbo 4 active cores
38 * 100.0 = 3700.0 MHz max turbo 3 active cores
39 * 100.0 = 3800.0 MHz max turbo 2 active cores
39 * 100.0 = 3900.0 MHz max turbo 1 active cores

could now look something like this:

...
37 * 100.0 = 3600.0 MHz max turbo 16 active cores
38 * 100.0 = 3700.0 MHz max turbo 8 active cores
39 * 100.0 = 3800.0 MHz max turbo 4 active cores
39 * 100.0 = 3900.0 MHz max turbo 2 active cores

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