cpufreq: intel_pstate: Add update_util callback to pstate_funcs
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Mar 2017 22:17:10 +0000 (00:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:12:16 +0000 (23:12 +0200)
commit67dd9bf4416305811d58280dbe108d78ab573d56
tree1e7189f9830f45309cac43aa6d97cbadbe6297f4
parenteabd22c657f1d23c714f536b859a22a0f22ac7f5
cpufreq: intel_pstate: Add update_util callback to pstate_funcs

Avoid using extra function pointers during P-state selection by
dropping the get_target_pstate member from struct pstate_funcs,
adding a new update_util callback to it (to be registered with
the CPU scheduler as the utilization update callback in the active
mode) and reworking the utilization update callback routines to
invoke specific P-state selection functions directly.

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