提交 2fe71dcd 编写于 作者: U Ulf Hansson 提交者: Rafael J. Wysocki

PM / domains: Add late_initcall to disable unused PM domains

As default behavior let genpd at late init try to disable the unused
PM domains.
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: NKevin Hilman <khilman@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 d971f0b0
...@@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void) ...@@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void)
mutex_unlock(&gpd_list_lock); mutex_unlock(&gpd_list_lock);
} }
static int __init genpd_poweroff_unused(void)
{
pm_genpd_poweroff_unused();
return 0;
}
late_initcall(genpd_poweroff_unused);
#else #else
static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb, static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册