]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad04b0e80d94fe5d49f427561060a04bd02a3a07
treef453c5d9b6483239e3f411c2e210914c0a3e8089
parentbbbf5cb1b1a11b569287b288bbd66c4835aa5fe1
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