]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: report correct CPU frequencies during trace
authorDoug Smythies <doug.smythies@gmail.com>
Tue, 8 Aug 2017 21:05:12 +0000 (14:05 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2017 23:25:53 +0000 (01:25 +0200)
commit3f8a48525ea5a74ac76b686ff840db67f9687973
tree71e8938a77a416661fe6544abd282a964601fda1
parent1b97f15d622ae0aa1e9cf95d3fbb2c4720b23cb7
cpufreq: intel_pstate: report correct CPU frequencies during trace

The intel_pstate CPU frequency scaling driver has always
calculated CPU frequency incorrectly.  Recent changes have
eliminted most of the issues, however the frequency reported
in the trace buffer, if used, is incorrect.

It remains desireable that cpu->pstate.scaling still be a nice
round number for things such as when setting max and min frequencies.
So the proposal is to just fix the reported frequency in the trace data.

Fixes what remains of [1].

Link: https://bugzilla.kernel.org/show_bug.cgi?id=96521
Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c