intel_pstate: Use sample.core_avg_perf in get_avg_pstate()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2016 17:10:42 +0000 (19:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2016 20:58:37 +0000 (22:58 +0200)
commit8edb0a6e48d147bb2aa466c58e03c52d2b0d6ee7
tree3bccdcdaa490245a0ca4b3a408fb75e7358f71de
parenta1c9787dc38097d554f9da8372031b3d6f8c140a
intel_pstate: Use sample.core_avg_perf in get_avg_pstate()

Notice that get_avg_pstate() can use sample.core_avg_perf instead of
carrying the same division again, so make it do that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c