]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit31e07522be566cd039ff7a770550076cc1707a0c
tree8841bd6ebbe54fcc5464193ad99c37dc7773c282
parent34c7619762f7b4ebbd5157b312e6022b725c031e
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