summaryrefslogtreecommitdiff
path: root/drivers/base/power
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-03 12:52:26 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-09 00:46:12 +0200
commit2fe71dcdfd10d3f71bb559609a8ceda9f76b1e2c (patch)
treec5dfc86e7d7cf70e76ed4076a1068966d0c06a02 /drivers/base/power
parentd971f0b0eaaf3f2086bf21bbd64f7ea7e2f28459 (diff)
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: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r--drivers/base/power/domain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index d71d0458d41f..cf4651a15a57 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void)
mutex_unlock(&gpd_list_lock);
}
+static int __init genpd_poweroff_unused(void)
+{
+ pm_genpd_poweroff_unused();
+ return 0;
+}
+late_initcall(genpd_poweroff_unused);
+
#else
static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,