diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/pm.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
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 f067e60a3832..007e687c4f69 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 |
