]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: fix IVB support
authorLen Brown <len.brown@intel.com>
Mon, 4 Jun 2012 03:34:44 +0000 (23:34 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 4 Jun 2012 03:47:49 +0000 (23:47 -0400)
commit0142c0e906b153a058fd128f3e2dff79fee5c269
treec4535bf1a5a16b8dc6ae528fd8c8a9845ed1a6f9
parente5c2a899b971f34cd52ae3deadb932c6a520236a
tools/power turbostat: fix IVB support

Initial IVB support went into turbostat in Linux-3.1:
ca9a28933359986cd0731a6180ad20502cb40b00
(tools turbostat: recognize and run properly on IVB)

However, when running on IVB, turbostat would fail
to report the new couters added with SNB, c7, pc2 and pc7.
So in scenarios where these counters are non-zero on IVB,
turbostat would report erroneous residencey results.

In particular c7 time would be added to c1 time,
since c1 time is calculated as "that which is left over".

Also, turbostat reports MHz capabilities when passed
the "-v" option, and it would incorrectly report 133MHz
bclk instead of 100MHz bclk for IVB, which would inflate
GHz reported with that option.

This patch is a backport of a fix already included in turbostat v2.

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