Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4077962yba; Tue, 9 Apr 2019 10:37:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3a738trTSB7rtXyldIFyGIxfACEGb69TgtA/HKnfBQuXCYmJp+DhqsNGaJZ5lqGtqFVGD X-Received: by 2002:a63:d304:: with SMTP id b4mr35988381pgg.300.1554831477576; Tue, 09 Apr 2019 10:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554831477; cv=none; d=google.com; s=arc-20160816; b=Ickq2LWw/igDlohFskLzAwPK4eRoFWGcArgnyI4K8YupIgegk29J+FN5CdaTCuTyNj gqBSLrdOafKYFEYJaoAEsPd6rnLRKKuezsJejVQr+nlElZFvZTFCTxBUBjvt+erQff0T aPTyMu5uANckWDS0GHcOfCtvbsLtwH/1K3WZzhlI9UOBU4MOv9mAn6Ln9UyQgJpYDWYv XkR3lvEcgcPp0PHX/klS87rYSr5ti40bQA2x2H1/Hy2/xbn0cculvRWthEt+lIPJWNNW z5ManFeEy5i7alIqLzGahCPQi+B9l6dlSCMNV/tWC8RFhwClCzSOkxtIWExjoq4aQ9FT t0/Q== 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=choV7M56kWU7RpiT6DK+eEX7Ayx0G3S3bDDmZszKjKs=; b=r9yjd9D3e0+KsOjE6NhPERtnO84YG/Z+74sl0d6nyFjlHn1ce1IvisVEuITtiXmCcy 9Tu47TnxUYcBCIE0MOYTTc/GS/BXFm9HaEwH9kqaYPZiKz5HlhXCjorKHEed7FJ8a9UC i0OpW6UXCMbUIqYamGbdMdo45qAFWjwv3qU67+FavRHmKUX4IpUJoDDD6bklpXQWLa1g qaVHHkOvAFoZNIPD+Hz0Df2RiBYI90eH7SB6ws5kd3M+B9QAF+QKSUp0zQSihgzcJkY9 hA9f1UxnhW1i9Tt2UGWsSv82JkIHMcQ9jUMv6fpABP3hJy36YM6p3npTL4dGn5CiQ4S9 9SBA== 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 f91si4111724plb.378.2019.04.09.10.37.41; Tue, 09 Apr 2019 10:37:57 -0700 (PDT) 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 S1726680AbfDIRhB (ORCPT + 99 others); Tue, 9 Apr 2019 13:37:01 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbfDIRg5 (ORCPT ); Tue, 9 Apr 2019 13:36:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7383E15BE; Tue, 9 Apr 2019 10:36:57 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 14A1A3F59C; Tue, 9 Apr 2019 10:36:55 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: mingo@redhat.com, peterz@infradead.org, Dietmar.Eggemann@arm.com, morten.rasmussen@arm.com, qais.yousef@arm.com Subject: [PATCH 2/2] sched/topology: Fix build_sched_groups() comment Date: Tue, 9 Apr 2019 18:35:46 +0100 Message-Id: <20190409173546.4747-3-valentin.schneider@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409173546.4747-1-valentin.schneider@arm.com> References: <20190409173546.4747-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The comment was introduced (pre 2.6.12) by commit 8a7a2318dc07 ("[PATCH] sched: consolidate sched domains") and referred to sched_group->cpu_power. This was folded into sched_group->sched_group_power in commit 9c3f75cbd144 ("sched: Break out cpu_power from the sched_group structure") The comment was then updated in commit ced549fa5fc1 ("sched: Remove remaining dubious usage of "power"") but should have replaced "sg->cpu_capacity" with "sg->sched_group_capacity". Do that now. Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 6c0b7326f66e..c65b31e9458b 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1093,8 +1093,8 @@ static struct sched_group *get_group(int cpu, struct sd_data *sdd) /* * build_sched_groups will build a circular linked list of the groups - * covered by the given span, and will set each group's ->cpumask correctly, - * and ->cpu_capacity to 0. + * covered by the given span, will set each group's ->cpumask correctly, + * and will initialize their ->sgc. * * Assumes the sched_domain tree is fully constructed */ -- 2.20.1