History

PM: QoS: Adjust pm_qos_request() signature and reorder pm_qos.h

Change the return type of pm_qos_request() to be the same as the one of pm_qos_read_value() called by it internally and stop exporting it to modules (because its only caller, cpuidle, is not modular). Also move the pm_qos_read_value() header away from the CPU latency QoS API function headers in pm_qos.h (because it technically does not belong to that API). No intentional functional impact.

Rafael J. Wysocki committed 6 years ago

Commit e033b6c1 parent 333eed72 files · +4 −5Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/pm_qos.h+3−3
@@ -137,20 +137,20 @@ static inline int dev_pm_qos_request_active(struct dev_pm_qos_request *req) · 136 unmodified lines
137 return req->dev != NULL;137 return req->dev != NULL;
138}138}
139 139
140s32 pm_qos_read_value(struct pm_qos_constraints *c);
140int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,141int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,
141 enum pm_qos_req_action action, int value);142 enum pm_qos_req_action action, int value);
142bool pm_qos_update_flags(struct pm_qos_flags *pqf,143bool pm_qos_update_flags(struct pm_qos_flags *pqf,
143 struct pm_qos_flags_request *req,144 struct pm_qos_flags_request *req,
144 enum pm_qos_req_action action, s32 val);145 enum pm_qos_req_action action, s32 val);
146
145void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class,147void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class,
146 s32 value);148 s32 value);
147void pm_qos_update_request(struct pm_qos_request *req,149void pm_qos_update_request(struct pm_qos_request *req,
148 s32 new_value);150 s32 new_value);
149void pm_qos_remove_request(struct pm_qos_request *req);151void pm_qos_remove_request(struct pm_qos_request *req);
150 152s32 pm_qos_request(int pm_qos_class);
151int pm_qos_request(int pm_qos_class);
152int pm_qos_request_active(struct pm_qos_request *req);153int pm_qos_request_active(struct pm_qos_request *req);
153s32 pm_qos_read_value(struct pm_qos_constraints *c);
154 154
155#ifdef CONFIG_PM155#ifdef CONFIG_PM
156enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, s32 mask);156enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, s32 mask);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t