diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_qos.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 97723113ae92..84aa15089896 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
@@ -44,7 +44,16 @@ struct pm_qos_constraints { | |||
44 | struct blocking_notifier_head *notifiers; | 44 | struct blocking_notifier_head *notifiers; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | /* Action requested to pm_qos_update_target */ | ||
48 | enum pm_qos_req_action { | ||
49 | PM_QOS_ADD_REQ, /* Add a new request */ | ||
50 | PM_QOS_UPDATE_REQ, /* Update an existing request */ | ||
51 | PM_QOS_REMOVE_REQ /* Remove an existing request */ | ||
52 | }; | ||
53 | |||
47 | #ifdef CONFIG_PM | 54 | #ifdef CONFIG_PM |
55 | int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, | ||
56 | enum pm_qos_req_action action, int value); | ||
48 | void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, | 57 | void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, |
49 | s32 value); | 58 | s32 value); |
50 | void pm_qos_update_request(struct pm_qos_request *req, | 59 | void pm_qos_update_request(struct pm_qos_request *req, |
@@ -56,6 +65,11 @@ int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier); | |||
56 | int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); | 65 | int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); |
57 | int pm_qos_request_active(struct pm_qos_request *req); | 66 | int pm_qos_request_active(struct pm_qos_request *req); |
58 | #else | 67 | #else |
68 | static inline int pm_qos_update_target(struct pm_qos_constraints *c, | ||
69 | struct plist_node *node, | ||
70 | enum pm_qos_req_action action, | ||
71 | int value) | ||
72 | { return 0; } | ||
59 | static inline void pm_qos_add_request(struct pm_qos_request *req, | 73 | static inline void pm_qos_add_request(struct pm_qos_request *req, |
60 | int pm_qos_class, s32 value) | 74 | int pm_qos_class, s32 value) |
61 | { return; } | 75 | { return; } |