diff options
author | Jean Pihet <j-pihet@ti.com> | 2011-08-25 09:35:12 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-08-25 09:35:12 -0400 |
commit | cc74998618a66d34651c784dd02412614c3e81cc (patch) | |
tree | 6ba8aba112a682039cae003f3bbcc027478ef08c /include/linux/pm_qos.h | |
parent | e8db0be1245de16a6cc6365506abc392c3c212d4 (diff) |
PM QoS: Minor clean-ups
- Misc fixes to improve code readability:
* rename struct pm_qos_request_list to struct pm_qos_request,
* rename pm_qos_req parameter to req in internal code,
consistenly use req in the API parameters,
* update the in-kernel API callers to the new parameters names,
* rename of fields names (requests, list, node, constraints)
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Acked-by: markgross <markgross@thegnar.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_qos.h')
-rw-r--r-- | include/linux/pm_qos.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 7ba675413b08..6b0968f8bc6e 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
@@ -20,30 +20,30 @@ | |||
20 | #define PM_QOS_NETWORK_LAT_DEFAULT_VALUE (2000 * USEC_PER_SEC) | 20 | #define PM_QOS_NETWORK_LAT_DEFAULT_VALUE (2000 * USEC_PER_SEC) |
21 | #define PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE 0 | 21 | #define PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE 0 |
22 | 22 | ||
23 | struct pm_qos_request_list { | 23 | struct pm_qos_request { |
24 | struct plist_node list; | 24 | struct plist_node node; |
25 | int pm_qos_class; | 25 | int pm_qos_class; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | #ifdef CONFIG_PM | 28 | #ifdef CONFIG_PM |
29 | void pm_qos_add_request(struct pm_qos_request_list *l, | 29 | void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, |
30 | int pm_qos_class, s32 value); | 30 | s32 value); |
31 | void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req, | 31 | void pm_qos_update_request(struct pm_qos_request *req, |
32 | s32 new_value); | 32 | s32 new_value); |
33 | void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req); | 33 | void pm_qos_remove_request(struct pm_qos_request *req); |
34 | 34 | ||
35 | int pm_qos_request(int pm_qos_class); | 35 | int pm_qos_request(int pm_qos_class); |
36 | int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier); | 36 | int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier); |
37 | int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); | 37 | int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); |
38 | int pm_qos_request_active(struct pm_qos_request_list *req); | 38 | int pm_qos_request_active(struct pm_qos_request *req); |
39 | #else | 39 | #else |
40 | static inline void pm_qos_add_request(struct pm_qos_request_list *l, | 40 | static inline void pm_qos_add_request(struct pm_qos_request *req, |
41 | int pm_qos_class, s32 value) | 41 | int pm_qos_class, s32 value) |
42 | { return; } | 42 | { return; } |
43 | static inline void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req, | 43 | static inline void pm_qos_update_request(struct pm_qos_request *req, |
44 | s32 new_value) | 44 | s32 new_value) |
45 | { return; } | 45 | { return; } |
46 | static inline void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req) | 46 | static inline void pm_qos_remove_request(struct pm_qos_request *req) |
47 | { return; } | 47 | { return; } |
48 | 48 | ||
49 | static inline int pm_qos_request(int pm_qos_class) | 49 | static inline int pm_qos_request(int pm_qos_class) |
@@ -54,7 +54,7 @@ static inline int pm_qos_add_notifier(int pm_qos_class, | |||
54 | static inline int pm_qos_remove_notifier(int pm_qos_class, | 54 | static inline int pm_qos_remove_notifier(int pm_qos_class, |
55 | struct notifier_block *notifier) | 55 | struct notifier_block *notifier) |
56 | { return 0; } | 56 | { return 0; } |
57 | static inline int pm_qos_request_active(struct pm_qos_request_list *req) | 57 | static inline int pm_qos_request_active(struct pm_qos_request *req) |
58 | { return 0; } | 58 | { return 0; } |
59 | #endif | 59 | #endif |
60 | 60 | ||