aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index de2e0a8f6728..1d4e2d289821 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -381,10 +381,12 @@ struct dev_pm_info {
381 381
382#ifdef CONFIG_PM_SLEEP 382#ifdef CONFIG_PM_SLEEP
383extern void device_pm_lock(void); 383extern void device_pm_lock(void);
384extern int sysdev_resume(void);
384extern void device_power_up(pm_message_t state); 385extern void device_power_up(pm_message_t state);
385extern void device_resume(pm_message_t state); 386extern void device_resume(pm_message_t state);
386 387
387extern void device_pm_unlock(void); 388extern void device_pm_unlock(void);
389extern int sysdev_suspend(pm_message_t state);
388extern int device_power_down(pm_message_t state); 390extern int device_power_down(pm_message_t state);
389extern int device_suspend(pm_message_t state); 391extern int device_suspend(pm_message_t state);
390extern int device_prepare_suspend(pm_message_t state); 392extern int device_prepare_suspend(pm_message_t state);
@@ -398,6 +400,9 @@ extern void __suspend_report_result(const char *function, void *fn, int ret);
398 400
399#else /* !CONFIG_PM_SLEEP */ 401#else /* !CONFIG_PM_SLEEP */
400 402
403#define device_pm_lock() do {} while (0)
404#define device_pm_unlock() do {} while (0)
405
401static inline int device_suspend(pm_message_t state) 406static inline int device_suspend(pm_message_t state)
402{ 407{
403 return 0; 408 return 0;
@@ -407,6 +412,14 @@ static inline int device_suspend(pm_message_t state)
407 412
408#endif /* !CONFIG_PM_SLEEP */ 413#endif /* !CONFIG_PM_SLEEP */
409 414
415/* How to reorder dpm_list after device_move() */
416enum dpm_order {
417 DPM_ORDER_NONE,
418 DPM_ORDER_DEV_AFTER_PARENT,
419 DPM_ORDER_PARENT_BEFORE_DEV,
420 DPM_ORDER_DEV_LAST,
421};
422
410/* 423/*
411 * Global Power Management flags 424 * Global Power Management flags
412 * Used to keep APM and ACPI from both being active 425 * Used to keep APM and ACPI from both being active