]> 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)
commitfe40e30b7d17cdb55e02e10438857fbe9897e3aa
treef453c5d9b6483239e3f411c2e210914c0a3e8089
parent7343a2a28e63b5e6686b979d8dc16ccd423e3093
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