Changeset 679 for GPL/trunk/include/linux/pm_qos.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/pm_qos.h
r614 r679 11 11 12 12 #include <linux/version.h> 13 #include <linux/plist.h> 14 #include <linux/notifier.h> 15 #include <linux/device.h> 16 #include <linux/workqueue.h> 17 18 enum dev_pm_qos_req_type { 19 DEV_PM_QOS_RESUME_LATENCY = 1, 20 DEV_PM_QOS_LATENCY_TOLERANCE, 21 DEV_PM_QOS_FLAGS, 22 }; 23 24 struct pm_qos_flags_request { 25 struct list_head node; 26 s32 flags; /* Do not change to 64 bit */ 27 }; 28 29 struct dev_pm_qos_request { 30 enum dev_pm_qos_req_type type; 31 union { 32 struct plist_node pnode; 33 struct pm_qos_flags_request flr; 34 } data; 35 struct device *dev; 36 }; 37 38 struct pm_qos_request { 39 struct plist_node node; 40 int pm_qos_class; 41 struct delayed_work work; /* for pm_qos_update_request_timeout */ 42 }; 43 13 44 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) 14 45 #include <linux/latency.h> … … 36 67 } 37 68 69 static inline int dev_pm_qos_request_active(struct dev_pm_qos_request *req) 70 { 71 return req->dev != NULL; 72 } 73 74 static inline void pm_qos_add_request(struct pm_qos_request *req, int pm_qos_class, 75 s32 value) {} 76 static inline void pm_qos_update_request(struct pm_qos_request *req, 77 s32 new_value) {} 78 static inline void pm_qos_update_request_timeout(struct pm_qos_request *req, 79 s32 new_value, unsigned long timeout_us) {} 80 static inline void pm_qos_remove_request(struct pm_qos_request *req) {} 81 82 static inline int pm_qos_request_active(struct pm_qos_request *req) 83 { 84 return 0; 85 } 38 86 #endif /* >= 2.6.19 */ 39 87 88 static inline s32 cpu_latency_qos_limit(void) { return INT_MAX; } 89 static inline bool cpu_latency_qos_request_active(struct pm_qos_request *req) 90 { 91 return false; 92 } 93 static inline void cpu_latency_qos_add_request(struct pm_qos_request *req, 94 s32 value) {} 95 static inline void cpu_latency_qos_update_request(struct pm_qos_request *req, 96 s32 new_value) {} 97 static inline void cpu_latency_qos_remove_request(struct pm_qos_request *req) {} 98 40 99 #endif /* _LINUX_PM_QOS_H */
Note:
See TracChangeset
for help on using the changeset viewer.