History

PM: QoS: Drop pm_qos_update_request_timeout()

The pm_qos_update_request_timeout() function is not called from anywhere, so drop it along with the work member in struct pm_qos_request needed by it. Also drop the useless pm_qos_update_request_timeout trace event that is only triggered by that function (so it never triggers at all) and update the trace events documentation accordingly.

Rafael J. Wysocki committed 6 years ago

Commit 5a7ea521 parent 34896624 files · +0 −78Browse files

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

Unified · Split

include/linux/pm_qos.h+0−4
@@ -8,7 +8,6 @@ · 7 unmodified lines
88 #include <linux/plist.h>
99 #include <linux/notifier.h>
1010 #include <linux/device.h>
11−#include <linux/workqueue.h>
1211
1312 enum {
1413 PM_QOS_RESERVED = 0,
@@ -43,7 +42,6 @@ enum pm_qos_flags_status { · 28 unmodified lines
4342 struct pm_qos_request {
4443 struct plist_node node;
4544 int pm_qos_class;
46− struct delayed_work work; /* for pm_qos_update_request_timeout */
4745 };
4846
4947 struct pm_qos_flags_request {
@@ -149,8 +147,6 @@ void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, · 99 unmodified lines
149147 s32 value);
150148 void pm_qos_update_request(struct pm_qos_request *req,
151149 s32 new_value);
152−void pm_qos_update_request_timeout(struct pm_qos_request *req,
153− s32 new_value, unsigned long timeout_us);
154150 void pm_qos_remove_request(struct pm_qos_request *req);
155151
156152 int pm_qos_request(int pm_qos_class);