diff options
Diffstat (limited to 'kernel/pm_qos_params.c')
-rw-r--r-- | kernel/pm_qos_params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c index 645e541a45f6..0da2837416eb 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c | |||
@@ -120,10 +120,10 @@ static inline int pm_qos_get_value(struct pm_qos_object *o) | |||
120 | 120 | ||
121 | switch (o->type) { | 121 | switch (o->type) { |
122 | case PM_QOS_MIN: | 122 | case PM_QOS_MIN: |
123 | return plist_last(&o->requests)->prio; | 123 | return plist_first(&o->requests)->prio; |
124 | 124 | ||
125 | case PM_QOS_MAX: | 125 | case PM_QOS_MAX: |
126 | return plist_first(&o->requests)->prio; | 126 | return plist_last(&o->requests)->prio; |
127 | 127 | ||
128 | default: | 128 | default: |
129 | /* runtime check for not using enum */ | 129 | /* runtime check for not using enum */ |