]> Pileus Git - ~andy/linux/commitdiff
tools/power: turbostat: fix large c1% issue
authorLen Brown <len.brown@intel.com>
Thu, 14 Jun 2012 01:31:46 +0000 (21:31 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 20 Jul 2012 02:26:33 +0000 (22:26 -0400)
Under some conditions, c1% was displayed as very large number,
much higher than 100%.

c1% is not measured, it is derived as "that, which is left over"
from other counters.  However, the other counters are not collected
atomically, and so it is possible for c1% to be calaculagted as
a small negative number -- displayed as very large positive.

There was a check for mperf vs tsc for this already,
but it needed to also include the other counters
that are used to calculate c1.

Signed-off-by: Len Brown <len.brown@intel.com>

No differences found