]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitc587c79f90632df59c61383c6abebb2e07a81911
tree71e8938a77a416661fe6544abd282a964601fda1
parentaae4e7a8bc44722fe70d58920a36916b1043195e
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