diff options
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r-- | include/linux/pm.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 3b7e04b95bd2..198b8f9fe05e 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -178,9 +178,10 @@ typedef struct pm_message { | |||
178 | * This need not mean that the device should be put into a low power state. | 178 | * This need not mean that the device should be put into a low power state. |
179 | * For example, if the device is behind a link which is about to be turned | 179 | * For example, if the device is behind a link which is about to be turned |
180 | * off, the device may remain at full power. If the device does go to low | 180 | * off, the device may remain at full power. If the device does go to low |
181 | * power and if device_may_wakeup(dev) is true, remote wake-up (i.e., a | 181 | * power and is capable of generating run-time wake-up events, remote |
182 | * hardware mechanism allowing the device to request a change of its power | 182 | * wake-up (i.e., a hardware mechanism allowing the device to request a |
183 | * state, such as PCI PME) should be enabled for it. | 183 | * change of its power state via a wake-up event, such as PCI PME) should |
184 | * be enabled for it. | ||
184 | * | 185 | * |
185 | * @runtime_resume: Put the device into the fully active state in response to a | 186 | * @runtime_resume: Put the device into the fully active state in response to a |
186 | * wake-up event generated by hardware or at the request of software. If | 187 | * wake-up event generated by hardware or at the request of software. If |
@@ -218,7 +219,7 @@ struct dev_pm_ops { | |||
218 | * to RAM and hibernation. | 219 | * to RAM and hibernation. |
219 | */ | 220 | */ |
220 | #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \ | 221 | #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \ |
221 | struct dev_pm_ops name = { \ | 222 | const struct dev_pm_ops name = { \ |
222 | .suspend = suspend_fn, \ | 223 | .suspend = suspend_fn, \ |
223 | .resume = resume_fn, \ | 224 | .resume = resume_fn, \ |
224 | .freeze = suspend_fn, \ | 225 | .freeze = suspend_fn, \ |
@@ -428,6 +429,7 @@ struct dev_pm_info { | |||
428 | unsigned int idle_notification:1; | 429 | unsigned int idle_notification:1; |
429 | unsigned int request_pending:1; | 430 | unsigned int request_pending:1; |
430 | unsigned int deferred_resume:1; | 431 | unsigned int deferred_resume:1; |
432 | unsigned int run_wake:1; | ||
431 | enum rpm_request request; | 433 | enum rpm_request request; |
432 | enum rpm_status runtime_status; | 434 | enum rpm_status runtime_status; |
433 | int runtime_error; | 435 | int runtime_error; |