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.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -8,7 +8,6 @@ · 7 unmodified lines | ||
| 8 | 8 | #include <linux/plist.h> |
| 9 | 9 | #include <linux/notifier.h> |
| 10 | 10 | #include <linux/device.h> |
| 11 | −#include <linux/workqueue.h> | |
| 12 | 11 | |
| 13 | 12 | enum { |
| 14 | 13 | PM_QOS_RESERVED = 0, |
| @@ -43,7 +42,6 @@ enum pm_qos_flags_status { · 28 unmodified lines | ||
| 43 | 42 | struct pm_qos_request { |
| 44 | 43 | struct plist_node node; |
| 45 | 44 | int pm_qos_class; |
| 46 | − struct delayed_work work; /* for pm_qos_update_request_timeout */ | |
| 47 | 45 | }; |
| 48 | 46 | |
| 49 | 47 | 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 | ||
| 149 | 147 | s32 value); |
| 150 | 148 | void pm_qos_update_request(struct pm_qos_request *req, |
| 151 | 149 | s32 new_value); |
| 152 | −void pm_qos_update_request_timeout(struct pm_qos_request *req, | |
| 153 | − s32 new_value, unsigned long timeout_us); | |
| 154 | 150 | void pm_qos_remove_request(struct pm_qos_request *req); |
| 155 | 151 | |
| 156 | 152 | int pm_qos_request(int pm_qos_class); |