]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Add new helper functions for device-tree
authorJon Hunter <jonathanh@nvidia.com>
Mon, 12 Sep 2016 11:01:05 +0000 (12:01 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Sep 2016 00:49:32 +0000 (02:49 +0200)
commit8e80322a7f967900d8b20c777aeac585ffa36641
treed1b3de58420b6e37d3a59c134d41e6928b0592b0
parent5ea8a300d6483503aa2d7f8a2bec501f592f714e
PM / Domains: Add new helper functions for device-tree

Ideally, if we are returning a reference to a PM domain via a call to
of_genpd_get_from_provider(), then we should keep track of such
references via a reference count. The reference count could then be used
to determine if a PM domain can be safely removed. Alternatively, it is
possible to avoid such external references by providing APIs to access
the PM domain and hence, eliminate any calls to
of_genpd_get_from_provider().

Add new helper functions for adding a device and a subdomain to a PM
domain when using device-tree, so that external calls to
of_genpd_get_from_provider() can be removed.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h