alistair23-linux/tools/power
Len Brown 9185e988e9 tools/power turbostat: work around RC6 counter wrap
Sometimes the rc6 sysfs counter spontaneously resets,
causing turbostat prints a very large number
as it tries to calcuate % = 100 * (old - new) / interval

When we see (old > new), print ***.**% instead
of a bogus huge number.

Note that this detection is not fool-proof, as the counter
could reset several times and still result in new > old.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-04-07 22:18:40 +02:00
..
acpi ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
cpupower cpupower: Fix build error in cpufreq-info 2016-01-19 01:17:23 +01:00
x86 tools/power turbostat: work around RC6 counter wrap 2016-04-07 22:18:40 +02:00