OSDN Git Service

PM / OPP: Add dev_pm_opp_{un}register_get_pstate_helper()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 11 Oct 2017 07:24:15 +0000 (12:54 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Oct 2017 22:54:41 +0000 (00:54 +0200)
commitb6aa98364f842f943495408895627702ad7ad44b
treef453c5d9b6483239e3f411c2e210914c0a3e8089
parent009acd196fc860045bf7b2c3f5812f0f5efb2782
PM / OPP: Add dev_pm_opp_{un}register_get_pstate_helper()

This adds the dev_pm_opp_{un}register_get_pstate_helper() helper
routines which will be used to set the get_pstate() callback for a
device. This callback will be later called internally by the OPP core to
get performance state corresponding to an OPP.

This is required temporarily until the time we have proper DT bindings
to include the performance state information.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/opp/core.c
drivers/opp/opp.h
include/linux/pm_opp.h