aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-08 17:27:28 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2011-12-09 17:22:41 -0500
commit925b44a273aa8c4c23c006c1228aacd538eead09 (patch)
tree107742feb4aa12727de15daf5d472968967ce142 /include/linux/pm_domain.h
parentc9914854b4ca339e511d052ce3a1a441ef15b928 (diff)
PM / Domains: Provide an always on power domain governor
Since systems are likely to have power domains that can't be turned off for various reasons at least temporarily while implementing power domain support provide a default governor which will always refuse to power off the domain, saving platforms having to implement their own. Since the code is so tiny don't bother with a Kconfig symbol for it. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r--include/linux/pm_domain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index fb809b904891..a03a0ad998b8 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -140,6 +140,7 @@ extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
140 140
141extern bool default_stop_ok(struct device *dev); 141extern bool default_stop_ok(struct device *dev);
142 142
143extern struct dev_power_governor pm_domain_always_on_gov;
143#else 144#else
144 145
145static inline struct generic_pm_domain *dev_to_genpd(struct device *dev) 146static inline struct generic_pm_domain *dev_to_genpd(struct device *dev)
@@ -193,6 +194,7 @@ static inline bool default_stop_ok(struct device *dev)
193{ 194{
194 return false; 195 return false;
195} 196}
197#define pm_domain_always_on_gov NULL
196#endif 198#endif
197 199
198static inline int pm_genpd_remove_callbacks(struct device *dev) 200static inline int pm_genpd_remove_callbacks(struct device *dev)