]> 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)
commitbb5cddf51965e4744903c54877f39269ef39f1d5
tree71e8938a77a416661fe6544abd282a964601fda1
parent7613cd8da5a8c547eec267568182d04d895b6284
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