summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-02-11 23:58:26 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-02-13 11:25:48 +0100
commit87ad7356799622b69478076cd99df7a5024992cb (patch)
treebfa12ce81122cd93bec3821629d299dc1ef0ea52 /kernel/power
parent5a7ea52b6faec6f8877e49645a80349b2d970f0a (diff)
downloadlinux-87ad7356799622b69478076cd99df7a5024992cb.tar.bz2
PM: QoS: Drop the PM_QOS_SUM QoS type
The PM_QOS_SUM QoS type is not used, so drop it along with the code referring to it in pm_qos_get_value() and the related local variables in there. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/qos.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 67dab7f330e4..a6be7faa1974 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -101,9 +101,6 @@ static const struct file_operations pm_qos_power_fops = {
/* unlocked internal variant */
static inline int pm_qos_get_value(struct pm_qos_constraints *c)
{
- struct plist_node *node;
- int total_value = 0;
-
if (plist_head_empty(&c->list))
return c->no_constraint_value;
@@ -114,12 +111,6 @@ static inline int pm_qos_get_value(struct pm_qos_constraints *c)
case PM_QOS_MAX:
return plist_last(&c->list)->prio;
- case PM_QOS_SUM:
- plist_for_each(node, &c->list)
- total_value += node->prio;
-
- return total_value;
-
default:
/* runtime check for not using enum */
BUG();