1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/power/cpupower/utils/idle_monitor
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
..
amd_fam14h_idle.c cpupower: AMD fam14h/Ontario monitor can also be used by fam12h cpus 2012-03-03 14:40:08 +01:00
cpuidle_sysfs.c cpupower: Do not show an empty Idle_Stats monitor if no idle driver is available 2011-08-15 20:03:05 +02:00
cpupower-monitor.c cpupower: Provide -c param for cpupower monitor to schedule process on all cores 2012-11-27 23:07:20 +01:00
cpupower-monitor.h cpupower: Provide -c param for cpupower monitor to schedule process on all cores 2012-11-27 23:07:20 +01:00
hsw_ext_idle.c cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states 2013-07-05 01:52:19 +02:00
idle_monitors.def cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states 2013-07-05 01:52:19 +02:00
idle_monitors.h cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
mperf_monitor.c cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode 2015-05-30 02:21:31 +02:00
nhm_idle.c cpupowerutils: idle_monitor - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
snb_idle.c cpupower: Haswell also supports the C-states introduced with SandyBridge 2013-07-05 01:52:19 +02:00