@@ -49,21 +49,6 @@ struct pm_qos_flags_request {
49
49
s32 flags ; /* Do not change to 64 bit */
50
50
};
51
51
52
- enum dev_pm_qos_req_type {
53
- DEV_PM_QOS_RESUME_LATENCY = 1 ,
54
- DEV_PM_QOS_LATENCY_TOLERANCE ,
55
- DEV_PM_QOS_FLAGS ,
56
- };
57
-
58
- struct dev_pm_qos_request {
59
- enum dev_pm_qos_req_type type ;
60
- union {
61
- struct plist_node pnode ;
62
- struct pm_qos_flags_request flr ;
63
- } data ;
64
- struct device * dev ;
65
- };
66
-
67
52
enum pm_qos_type {
68
53
PM_QOS_UNITIALIZED ,
69
54
PM_QOS_MAX , /* return the largest value */
@@ -90,6 +75,44 @@ struct pm_qos_flags {
90
75
s32 effective_flags ; /* Do not change to 64 bit */
91
76
};
92
77
78
+
79
+ #define FREQ_QOS_MIN_DEFAULT_VALUE 0
80
+ #define FREQ_QOS_MAX_DEFAULT_VALUE S32_MAX
81
+
82
+ enum freq_qos_req_type {
83
+ FREQ_QOS_MIN = 1 ,
84
+ FREQ_QOS_MAX ,
85
+ };
86
+
87
+ struct freq_constraints {
88
+ struct pm_qos_constraints min_freq ;
89
+ struct blocking_notifier_head min_freq_notifiers ;
90
+ struct pm_qos_constraints max_freq ;
91
+ struct blocking_notifier_head max_freq_notifiers ;
92
+ };
93
+
94
+ struct freq_qos_request {
95
+ enum freq_qos_req_type type ;
96
+ struct plist_node pnode ;
97
+ struct freq_constraints * qos ;
98
+ };
99
+
100
+
101
+ enum dev_pm_qos_req_type {
102
+ DEV_PM_QOS_RESUME_LATENCY = 1 ,
103
+ DEV_PM_QOS_LATENCY_TOLERANCE ,
104
+ DEV_PM_QOS_FLAGS ,
105
+ };
106
+
107
+ struct dev_pm_qos_request {
108
+ enum dev_pm_qos_req_type type ;
109
+ union {
110
+ struct plist_node pnode ;
111
+ struct pm_qos_flags_request flr ;
112
+ } data ;
113
+ struct device * dev ;
114
+ };
115
+
93
116
struct dev_pm_qos {
94
117
struct pm_qos_constraints resume_latency ;
95
118
struct pm_qos_constraints latency_tolerance ;
@@ -255,27 +278,6 @@ static inline s32 dev_pm_qos_raw_resume_latency(struct device *dev)
255
278
}
256
279
#endif
257
280
258
- #define FREQ_QOS_MIN_DEFAULT_VALUE 0
259
- #define FREQ_QOS_MAX_DEFAULT_VALUE S32_MAX
260
-
261
- enum freq_qos_req_type {
262
- FREQ_QOS_MIN = 1 ,
263
- FREQ_QOS_MAX ,
264
- };
265
-
266
- struct freq_constraints {
267
- struct pm_qos_constraints min_freq ;
268
- struct blocking_notifier_head min_freq_notifiers ;
269
- struct pm_qos_constraints max_freq ;
270
- struct blocking_notifier_head max_freq_notifiers ;
271
- };
272
-
273
- struct freq_qos_request {
274
- enum freq_qos_req_type type ;
275
- struct plist_node pnode ;
276
- struct freq_constraints * qos ;
277
- };
278
-
279
281
static inline int freq_qos_request_active (struct freq_qos_request * req )
280
282
{
281
283
return !IS_ERR_OR_NULL (req -> qos );
0 commit comments