Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5424647ybv; Tue, 11 Feb 2020 15:40:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyOT63N4/qdnpGWEbhkoNJOoweINHHOpR63mTXZKQNHALQnLOooBVlFku/9PmlsWN02jags X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr6995746oti.32.1581464430855; Tue, 11 Feb 2020 15:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581464430; cv=none; d=google.com; s=arc-20160816; b=Ww8lo9fMQyrMM3Z3DXJIrDPRU4a3mtAzE+qy6Vapc6f88ldrHht9kbtj8OhKq37NwG aClmz0nLbj8QAPZ60mJGv+MPi/ID3i1yzljjsQYexMxfbFrB7s9z1Zta83vTdJ9bLV1r kNn+rrTATKRt+KtTK2WJ0LcZwphuGRYtcm8OCMp4t0rzg6ANqNdxrCUdrso7I7Hb8DEk Qq/I8fMwZjRgnFu0Dzfl72xZFW4W/SDLBVA6iGQ4XI0L6zWNLIGJ0R3fhP46aldggvPV yD2gWld6DFGo76VELQbcwOh0OYGvbmpgwx7hMowK4wU8xcz5BCYCTCsGmYHyh3tVrVv6 frvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LKIGMHSzKv+e0XbxK8nXsE7x1Kc5Pms0ZFwM0bj3Y+E=; b=dqEbvnlH0TTkDka5KEpJcTKNmU1dzo7aP71iOUgc4APjkdus4T1QxLfa33icKh7BpW 5P8OGNbupKTOTz0h+dc9bwJU201Ir+VE5g93rxIbCwybVGktoaDfiQpcygfCd3y6RQIs EVLqCvGMhcWWT/CdMyHpmtBZVNSxN/0iUe4MUgFJZQ23U1QnoYi3zMviqOWqtSPVCPPi iU0kkWUbjW1aVgSfXpWHwelX4pSFJqepL3aWRN8TN+lKinEzr3rt50+GbyhYtn5qa/Nc O5xCN7DOzHitUhKLvRHFMTEcfWvn+7qtzt22D8N3c2QDvKk7ZU4LAYDXN717UUn8wjQM s1+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si2343892oih.186.2020.02.11.15.40.18; Tue, 11 Feb 2020 15:40:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728301AbgBKXjT (ORCPT + 99 others); Tue, 11 Feb 2020 18:39:19 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:44707 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727947AbgBKXjD (ORCPT ); Tue, 11 Feb 2020 18:39:03 -0500 Received: from 79.184.254.199.ipv4.supernova.orange.pl (79.184.254.199) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id bb3e1864880233c1; Wed, 12 Feb 2020 00:39:01 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Amit Kucheria Subject: [PATCH 03/28] PM: QoS: Drop the PM_QOS_SUM QoS type Date: Tue, 11 Feb 2020 23:58:26 +0100 Message-ID: <4044638.r6IGMOjVKC@kreacher> In-Reply-To: <1654227.8mz0SueHsU@kreacher> References: <1654227.8mz0SueHsU@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Rafael J. Wysocki" 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 --- include/linux/pm_qos.h | 1 - kernel/power/qos.c | 9 --------- 2 files changed, 10 deletions(-) diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 4747bdb6bed2..48bfb96a9360 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h @@ -53,7 +53,6 @@ enum pm_qos_type { PM_QOS_UNITIALIZED, PM_QOS_MAX, /* return the largest value */ PM_QOS_MIN, /* return the smallest value */ - PM_QOS_SUM /* return the sum */ }; /* 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(); -- 2.16.4