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
137137 return req->dev != NULL;
138138 }
139139
140+s32 pm_qos_read_value(struct pm_qos_constraints *c);
140141 int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,
141142 enum pm_qos_req_action action, int value);
142143 bool pm_qos_update_flags(struct pm_qos_flags *pqf,
143144 struct pm_qos_flags_request *req,
144145 enum pm_qos_req_action action, s32 val);
146+
145147 void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class,
146148 s32 value);
147149 void pm_qos_update_request(struct pm_qos_request *req,
148150 s32 new_value);
149151 void pm_qos_remove_request(struct pm_qos_request *req);
150−
151−int pm_qos_request(int pm_qos_class);
152+s32 pm_qos_request(int pm_qos_class);
152153 int pm_qos_request_active(struct pm_qos_request *req);
153−s32 pm_qos_read_value(struct pm_qos_constraints *c);
154154
155155 #ifdef CONFIG_PM
156156 enum 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