diff options
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r-- | include/linux/pm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index f067e60a383..007e687c4f6 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -510,12 +510,14 @@ struct dev_pm_info { | |||
510 | bool is_prepared:1; /* Owned by the PM core */ | 510 | bool is_prepared:1; /* Owned by the PM core */ |
511 | bool is_suspended:1; /* Ditto */ | 511 | bool is_suspended:1; /* Ditto */ |
512 | bool ignore_children:1; | 512 | bool ignore_children:1; |
513 | bool early_init:1; /* Owned by the PM core */ | ||
513 | spinlock_t lock; | 514 | spinlock_t lock; |
514 | #ifdef CONFIG_PM_SLEEP | 515 | #ifdef CONFIG_PM_SLEEP |
515 | struct list_head entry; | 516 | struct list_head entry; |
516 | struct completion completion; | 517 | struct completion completion; |
517 | struct wakeup_source *wakeup; | 518 | struct wakeup_source *wakeup; |
518 | bool wakeup_path:1; | 519 | bool wakeup_path:1; |
520 | bool syscore:1; | ||
519 | #else | 521 | #else |
520 | unsigned int should_wakeup:1; | 522 | unsigned int should_wakeup:1; |
521 | #endif | 523 | #endif |
@@ -638,6 +640,7 @@ extern void __suspend_report_result(const char *function, void *fn, int ret); | |||
638 | } while (0) | 640 | } while (0) |
639 | 641 | ||
640 | extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); | 642 | extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); |
643 | extern void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *)); | ||
641 | 644 | ||
642 | extern int pm_generic_prepare(struct device *dev); | 645 | extern int pm_generic_prepare(struct device *dev); |
643 | extern int pm_generic_suspend_late(struct device *dev); | 646 | extern int pm_generic_suspend_late(struct device *dev); |
@@ -677,6 +680,10 @@ static inline int device_pm_wait_for_dev(struct device *a, struct device *b) | |||
677 | return 0; | 680 | return 0; |
678 | } | 681 | } |
679 | 682 | ||
683 | static inline void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *)) | ||
684 | { | ||
685 | } | ||
686 | |||
680 | #define pm_generic_prepare NULL | 687 | #define pm_generic_prepare NULL |
681 | #define pm_generic_suspend NULL | 688 | #define pm_generic_suspend NULL |
682 | #define pm_generic_resume NULL | 689 | #define pm_generic_resume NULL |