PM / OPP: Add dev_pm_opp_get_sharing_cpus()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Apr 2016 03:22:23 +0000 (08:52 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Apr 2016 13:18:18 +0000 (15:18 +0200)
commit6f707daa3833761110a03478cba5cc4b708ec77d
treec01c90b01dd8a481283586b2738ac79a95322b27
parentdde370b23c1787a9c723ac049d56a3014937f889
PM / OPP: Add dev_pm_opp_get_sharing_cpus()

OPP core allows a platform to mark OPP table as shared, when the
platform isn't using operating-points-v2 bindings.

And, so there should be a non DT way of finding out if the OPP table is
shared or not.

This patch adds dev_pm_opp_get_sharing_cpus(), which first tries to get
OPP sharing information from the opp-table (in case it is already marked
as shared), otherwise it uses the existing DT way of finding sharing
information.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/cpu.c
include/linux/pm_opp.h