summaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-14 20:59:07 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-14 20:59:07 +0200
commit0bc5b2debb832191a42baea7ff59d2ca6ce9f7d5 (patch)
treecb7f1f7a20fb9a9d2483714a8e9f0a3a84862245 /include/linux/pm_domain.h
parent796204142a98b6e0e71b494e808d1b6ee62cc75f (diff)
downloadlinux-stable-0bc5b2debb832191a42baea7ff59d2ca6ce9f7d5.tar.gz
linux-stable-0bc5b2debb832191a42baea7ff59d2ca6ce9f7d5.tar.bz2
linux-stable-0bc5b2debb832191a42baea7ff59d2ca6ce9f7d5.zip
ARM / shmobile: Use genpd_queue_power_off_work()
Make pd_power_down_a3rv() use genpd_queue_power_off_work() to queue up the powering off of the A4LC domain to avoid queuing it up when it is pending. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Magnus Damm <damm@opensource.se>
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 3e4f3d308f5e..21097cb086fe 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -73,6 +73,7 @@ extern void pm_genpd_init(struct generic_pm_domain *genpd,
struct dev_power_governor *gov, bool is_off);
extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
extern void pm_genpd_poweroff_unused(void);
+extern void genpd_queue_power_off_work(struct generic_pm_domain *genpd);
#else
static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,
struct device *dev)
@@ -101,6 +102,7 @@ static inline int pm_genpd_poweron(struct generic_pm_domain *genpd)
return -ENOSYS;
}
static inline void pm_genpd_poweroff_unused(void) {}
+static inline void genpd_queue_power_off_work(struct generic_pm_domain *gpd) {}
#endif
#endif /* _LINUX_PM_DOMAIN_H */