linux/tools/power/cpupower/utils
Herton R. Krzesinski 47b98c74fa cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode
There is clearly wrong output when mperf monitor runs in MAX_FREQ_SYSFS mode:
average frequency shows in kHz unit (despite the intended output to be in MHz),
and percentages for C state information are all wrong (including high/negative
values shown).

The problem is that the max_frequency read on initialization isn't used where it
should have been used on mperf_get_count_percent (to estimate the number of
ticks in the given time period), and the value we read from sysfs is in kHz, so
we must divide it to get the MHz value to use in current calculations.

While at it, also I fixed another small issues in the debug output of
max_frequency value in mperf_get_count_freq.

Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-05-30 02:21:31 +02:00
..
helpers cpupower: fix breakage from libpci API change 2015-04-15 21:54:26 +02:00
idle_monitor cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode 2015-05-30 02:21:31 +02:00
builtin.h cpupower: Introduce idle-set subcommand and C-state enabling/disabling 2013-07-05 01:52:19 +02:00
cpufreq-info.c PM / tools: cpupower: add option to display values without round offs 2014-05-07 00:19:06 +02:00
cpufreq-set.c cpupower: Remove redundant error check 2014-07-30 01:57:13 +02:00
cpuidle-info.c Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()" 2014-12-14 22:14:16 +01:00
cpuidle-set.c cpupower: Introduce idle state disable-by-latency and enable-all 2014-05-17 00:36:36 +02:00
cpupower-info.c cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower-set.c cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower.c tools / cpupower: Correctly detect if running as root 2014-12-19 23:01:03 +01:00
version-gen.sh cpupowerutils: use kernel version-derived version string 2011-07-29 18:35:39 +02:00