diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-08-05 19:45:54 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-03 19:36:03 -0400 |
commit | 6fb28badf207a6d8a78906353772e1c3f560a977 (patch) | |
tree | 3cb1cdc06c263708dd40e9c490fcf8ddf921bbbd /include | |
parent | bed2b42d9f0b411f384c5619870ab0fea5dd116b (diff) |
PM / Domains: Rename the always_on device flag to syscore
The always_on device flag is used to mark the devices (belonging to
a PM domain) that should never be turned off, except for the system
core (syscore) suspend/hibernation and resume stages. Change name
of that flag to "syscore" to better reflect its purpose.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_domain.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index ab83cf3dfaa..dab0938603f 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h | |||
@@ -114,7 +114,7 @@ struct generic_pm_domain_data { | |||
114 | struct mutex lock; | 114 | struct mutex lock; |
115 | unsigned int refcount; | 115 | unsigned int refcount; |
116 | bool need_restore; | 116 | bool need_restore; |
117 | bool always_on; | 117 | bool syscore; |
118 | }; | 118 | }; |
119 | 119 | ||
120 | #ifdef CONFIG_PM_GENERIC_DOMAINS | 120 | #ifdef CONFIG_PM_GENERIC_DOMAINS |
@@ -153,7 +153,7 @@ static inline int pm_genpd_of_add_device(struct device_node *genpd_node, | |||
153 | 153 | ||
154 | extern int pm_genpd_remove_device(struct generic_pm_domain *genpd, | 154 | extern int pm_genpd_remove_device(struct generic_pm_domain *genpd, |
155 | struct device *dev); | 155 | struct device *dev); |
156 | extern void pm_genpd_dev_always_on(struct device *dev, bool val); | 156 | extern void pm_genpd_dev_syscore(struct device *dev, bool val); |
157 | extern void pm_genpd_dev_need_restore(struct device *dev, bool val); | 157 | extern void pm_genpd_dev_need_restore(struct device *dev, bool val); |
158 | extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, | 158 | extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, |
159 | struct generic_pm_domain *new_subdomain); | 159 | struct generic_pm_domain *new_subdomain); |
@@ -199,7 +199,7 @@ static inline int pm_genpd_remove_device(struct generic_pm_domain *genpd, | |||
199 | { | 199 | { |
200 | return -ENOSYS; | 200 | return -ENOSYS; |
201 | } | 201 | } |
202 | static inline void pm_genpd_dev_always_on(struct device *dev, bool val) {} | 202 | static inline void pm_genpd_dev_syscore(struct device *dev, bool val) {} |
203 | static inline void pm_genpd_dev_need_restore(struct device *dev, bool val) {} | 203 | static inline void pm_genpd_dev_need_restore(struct device *dev, bool val) {} |
204 | static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, | 204 | static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, |
205 | struct generic_pm_domain *new_sd) | 205 | struct generic_pm_domain *new_sd) |