aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_governor.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-02 01:08:43 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-02 01:08:43 +0200
commit0bed612be638e41456cd8cb270a2b411a5b43d63 (patch)
tree02b294dcea4c15378525c456314af36334a87f4a /drivers/cpufreq/cpufreq_governor.h
parentMerge back intel_pstate fixes for v4.6. (diff)
downloadlinux-dev-0bed612be638e41456cd8cb270a2b411a5b43d63.tar.xz
linux-dev-0bed612be638e41456cd8cb270a2b411a5b43d63.zip
cpufreq: sched: Helpers to add and remove update_util hooks
Replace the single helper for adding and removing cpufreq utilization update hooks, cpufreq_set_update_util_data(), with a pair of helpers, cpufreq_add_update_util_hook() and cpufreq_remove_update_util_hook(), and modify the users of cpufreq_set_update_util_data() accordingly. With the new helpers, the code using them doesn't need to worry about the internals of struct update_util_data and in particular it doesn't need to worry about populating the func field in it properly upfront. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
0 files changed, 0 insertions, 0 deletions