]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9164ad1c53616fbd8d58aa84413022ee511cfac3
tree1e7189f9830f45309cac43aa6d97cbadbe6297f4
parent616ea82b2e648d599f6390ee0d0662fc0dc6a9e9
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