aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_runtime.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-15 17:59:09 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-15 17:59:09 -0400
commitba1389d74f34c0c6e95cc135a332cd29c29d9c20 (patch)
tree53813843d22cfcfe6d466a5daa44c646f8157980 /include/linux/pm_runtime.h
parentf0c077a8b7f9dce590c760a7b2f3c417dffa52d1 (diff)
parent5ca80817e231723f1399bff495854ba2171103ca (diff)
Merge branch 'pm-domains' into for-linus
* pm-domains: (33 commits) ARM / shmobile: Return -EBUSY from A4LC power off if A3RV is active PM / Domains: Take .power_off() error code into account ARM / shmobile: Use genpd_queue_power_off_work() ARM / shmobile: Use pm_genpd_poweroff_unused() PM / Domains: Introduce function to power off all unused PM domains PM / Domains: Queue up power off work only if it is not pending PM / Domains: Improve handling of wakeup devices during system suspend PM / Domains: Do not restore all devices on power off error PM / Domains: Allow callbacks to execute all runtime PM helpers PM / Domains: Do not execute device callbacks under locks PM / Domains: Make failing pm_genpd_prepare() clean up properly PM / Domains: Set device state to "active" during system resume ARM: mach-shmobile: sh7372 A3RV requires A4LC PM / Domains: Export pm_genpd_poweron() in header ARM: mach-shmobile: sh7372 late pm domain off ARM: mach-shmobile: Runtime PM late init callback ARM: mach-shmobile: sh7372 D4 support ARM: mach-shmobile: sh7372 A4MP support ARM: mach-shmobile: sh7372: make sure that fsi is peripheral of spu2 ARM: mach-shmobile: sh7372 A3SG support ...
Diffstat (limited to 'include/linux/pm_runtime.h')
-rw-r--r--include/linux/pm_runtime.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
index 878cf84baeb1..dfb8539ed686 100644
--- a/include/linux/pm_runtime.h
+++ b/include/linux/pm_runtime.h
@@ -247,41 +247,41 @@ static inline void pm_runtime_dont_use_autosuspend(struct device *dev)
247 247
248struct pm_clk_notifier_block { 248struct pm_clk_notifier_block {
249 struct notifier_block nb; 249 struct notifier_block nb;
250 struct dev_power_domain *pwr_domain; 250 struct dev_pm_domain *pm_domain;
251 char *con_ids[]; 251 char *con_ids[];
252}; 252};
253 253
254#ifdef CONFIG_PM_RUNTIME_CLK 254#ifdef CONFIG_PM_CLK
255extern int pm_runtime_clk_init(struct device *dev); 255extern int pm_clk_init(struct device *dev);
256extern void pm_runtime_clk_destroy(struct device *dev); 256extern void pm_clk_destroy(struct device *dev);
257extern int pm_runtime_clk_add(struct device *dev, const char *con_id); 257extern int pm_clk_add(struct device *dev, const char *con_id);
258extern void pm_runtime_clk_remove(struct device *dev, const char *con_id); 258extern void pm_clk_remove(struct device *dev, const char *con_id);
259extern int pm_runtime_clk_suspend(struct device *dev); 259extern int pm_clk_suspend(struct device *dev);
260extern int pm_runtime_clk_resume(struct device *dev); 260extern int pm_clk_resume(struct device *dev);
261#else 261#else
262static inline int pm_runtime_clk_init(struct device *dev) 262static inline int pm_clk_init(struct device *dev)
263{ 263{
264 return -EINVAL; 264 return -EINVAL;
265} 265}
266static inline void pm_runtime_clk_destroy(struct device *dev) 266static inline void pm_clk_destroy(struct device *dev)
267{ 267{
268} 268}
269static inline int pm_runtime_clk_add(struct device *dev, const char *con_id) 269static inline int pm_clk_add(struct device *dev, const char *con_id)
270{ 270{
271 return -EINVAL; 271 return -EINVAL;
272} 272}
273static inline void pm_runtime_clk_remove(struct device *dev, const char *con_id) 273static inline void pm_clk_remove(struct device *dev, const char *con_id)
274{ 274{
275} 275}
276#define pm_runtime_clock_suspend NULL 276#define pm_clk_suspend NULL
277#define pm_runtime_clock_resume NULL 277#define pm_clk_resume NULL
278#endif 278#endif
279 279
280#ifdef CONFIG_HAVE_CLK 280#ifdef CONFIG_HAVE_CLK
281extern void pm_runtime_clk_add_notifier(struct bus_type *bus, 281extern void pm_clk_add_notifier(struct bus_type *bus,
282 struct pm_clk_notifier_block *clknb); 282 struct pm_clk_notifier_block *clknb);
283#else 283#else
284static inline void pm_runtime_clk_add_notifier(struct bus_type *bus, 284static inline void pm_clk_add_notifier(struct bus_type *bus,
285 struct pm_clk_notifier_block *clknb) 285 struct pm_clk_notifier_block *clknb)
286{ 286{
287} 287}