summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.fwinst
diff options
context:
space:
mode:
authorHerton R. Krzesinski <herton@redhat.com>2015-05-30 02:21:31 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-30 02:21:31 +0200
commit47b98c74fab2d05fd724a6d9fd0efc8987ae3911 (patch)
tree6708b6a39053c4f1bf71711e709e186f3c15123e /scripts/Makefile.fwinst
parentba155e2d21f6bf05de86a78dbe5bfd8757604a65 (diff)
downloadlinux-47b98c74fab2d05fd724a6d9fd0efc8987ae3911.tar.bz2
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>
Diffstat (limited to 'scripts/Makefile.fwinst')
0 files changed, 0 insertions, 0 deletions