aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/pm_qos.h14
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 */
48enum 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
55int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,
56 enum pm_qos_req_action action, int value);
48void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, 57void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class,
49 s32 value); 58 s32 value);
50void pm_qos_update_request(struct pm_qos_request *req, 59void 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);
56int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); 65int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);
57int pm_qos_request_active(struct pm_qos_request *req); 66int pm_qos_request_active(struct pm_qos_request *req);
58#else 67#else
68static 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; }
59static inline void pm_qos_add_request(struct pm_qos_request *req, 73static 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; }