diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-03 06:52:26 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-08 18:46:12 -0400 |
| commit | 2fe71dcdfd10d3f71bb559609a8ceda9f76b1e2c (patch) | |
| tree | c5dfc86e7d7cf70e76ed4076a1068966d0c06a02 /drivers/base | |
| parent | d971f0b0eaaf3f2086bf21bbd64f7ea7e2f28459 (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')
| -rw-r--r-- | drivers/base/power/domain.c | 7 |
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) | |||
| 721 | mutex_unlock(&gpd_list_lock); | 721 | mutex_unlock(&gpd_list_lock); |
| 722 | } | 722 | } |
| 723 | 723 | ||
| 724 | static int __init genpd_poweroff_unused(void) | ||
| 725 | { | ||
| 726 | pm_genpd_poweroff_unused(); | ||
| 727 | return 0; | ||
| 728 | } | ||
| 729 | late_initcall(genpd_poweroff_unused); | ||
| 730 | |||
| 724 | #else | 731 | #else |
| 725 | 732 | ||
| 726 | static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb, | 733 | static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb, |
