diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pm.h | 2 | ||||
| -rw-r--r-- | include/linux/pm_qos.h | 3 | ||||
| -rw-r--r-- | include/linux/pm_runtime.h | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 3f3ed83a9aa5..a7676efa6831 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
| @@ -521,6 +521,8 @@ struct dev_pm_info { | |||
| 521 | unsigned long active_jiffies; | 521 | unsigned long active_jiffies; |
| 522 | unsigned long suspended_jiffies; | 522 | unsigned long suspended_jiffies; |
| 523 | unsigned long accounting_timestamp; | 523 | unsigned long accounting_timestamp; |
| 524 | ktime_t suspend_time; | ||
| 525 | s64 max_time_suspended_ns; | ||
| 524 | #endif | 526 | #endif |
| 525 | struct pm_subsys_data *subsys_data; /* Owned by the subsystem. */ | 527 | struct pm_subsys_data *subsys_data; /* Owned by the subsystem. */ |
| 526 | struct pm_qos_constraints *constraints; | 528 | struct pm_qos_constraints *constraints; |
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 83b0ea302a80..775a3236343d 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
| @@ -78,6 +78,7 @@ int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); | |||
| 78 | int pm_qos_request_active(struct pm_qos_request *req); | 78 | int pm_qos_request_active(struct pm_qos_request *req); |
| 79 | s32 pm_qos_read_value(struct pm_qos_constraints *c); | 79 | s32 pm_qos_read_value(struct pm_qos_constraints *c); |
| 80 | 80 | ||
| 81 | s32 __dev_pm_qos_read_value(struct device *dev); | ||
| 81 | s32 dev_pm_qos_read_value(struct device *dev); | 82 | s32 dev_pm_qos_read_value(struct device *dev); |
| 82 | int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req, | 83 | int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req, |
| 83 | s32 value); | 84 | s32 value); |
| @@ -119,6 +120,8 @@ static inline int pm_qos_request_active(struct pm_qos_request *req) | |||
| 119 | static inline s32 pm_qos_read_value(struct pm_qos_constraints *c) | 120 | static inline s32 pm_qos_read_value(struct pm_qos_constraints *c) |
| 120 | { return 0; } | 121 | { return 0; } |
| 121 | 122 | ||
| 123 | static inline s32 __dev_pm_qos_read_value(struct device *dev) | ||
| 124 | { return 0; } | ||
| 122 | static inline s32 dev_pm_qos_read_value(struct device *dev) | 125 | static inline s32 dev_pm_qos_read_value(struct device *dev) |
| 123 | { return 0; } | 126 | { return 0; } |
| 124 | static inline int dev_pm_qos_add_request(struct device *dev, | 127 | static inline int dev_pm_qos_add_request(struct device *dev, |
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index d3085e72a0ee..609daae7a014 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h | |||
| @@ -45,6 +45,8 @@ extern void pm_runtime_irq_safe(struct device *dev); | |||
| 45 | extern void __pm_runtime_use_autosuspend(struct device *dev, bool use); | 45 | extern void __pm_runtime_use_autosuspend(struct device *dev, bool use); |
| 46 | extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); | 46 | extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); |
| 47 | extern unsigned long pm_runtime_autosuspend_expiration(struct device *dev); | 47 | extern unsigned long pm_runtime_autosuspend_expiration(struct device *dev); |
| 48 | extern void pm_runtime_update_max_time_suspended(struct device *dev, | ||
| 49 | s64 delta_ns); | ||
| 48 | 50 | ||
| 49 | static inline bool pm_children_suspended(struct device *dev) | 51 | static inline bool pm_children_suspended(struct device *dev) |
| 50 | { | 52 | { |
| @@ -148,6 +150,9 @@ static inline void pm_runtime_set_autosuspend_delay(struct device *dev, | |||
| 148 | static inline unsigned long pm_runtime_autosuspend_expiration( | 150 | static inline unsigned long pm_runtime_autosuspend_expiration( |
| 149 | struct device *dev) { return 0; } | 151 | struct device *dev) { return 0; } |
| 150 | 152 | ||
| 153 | static inline void pm_runtime_update_max_time_suspended(struct device *dev, | ||
| 154 | s64 delta_ns) {} | ||
| 155 | |||
| 151 | #endif /* !CONFIG_PM_RUNTIME */ | 156 | #endif /* !CONFIG_PM_RUNTIME */ |
| 152 | 157 | ||
| 153 | static inline int pm_runtime_idle(struct device *dev) | 158 | static inline int pm_runtime_idle(struct device *dev) |
