Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4736184yba; Wed, 10 Apr 2019 03:58:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRNfOocooSlyK8TR4/VJAOhhLkHPsEb87H4t1X5xQ3bgejBscyFGATi7CAfo1xsa8t5MeT X-Received: by 2002:a63:ce50:: with SMTP id r16mr37839537pgi.89.1554893932331; Wed, 10 Apr 2019 03:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554893932; cv=none; d=google.com; s=arc-20160816; b=G3b9txArrk9ZNuiOrlXeEI6HAc/A2ty1mxvwZqQUl4bTmfbRlJbbEDU+scBS287mY7 6WThFkkKOTnUfcYgWDSpHcpmivj/2SAARqmxRn5WMl9BagN5c2qY8nK8uqDT5xnT7VEm kGUUk2Kqeml4lDlBFYLcylu+8Vg1QgxIJhHrFpp1n3GNgulEcEK8O/RdjKx5BmPWzWzv J0yjtu1AIxHljQfMuIqMOt4PqY69xzl2z5C7FhTMcDuN5UPG7qWM/J3Omd3XQlx/CSn2 MAcS5RT4GONUSykgJPoTMsA+ZOeayudrfJETsbc/LbQkHQzED8x6lRNCopg/mY/+0CST EIzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=1wgZ3LTUJZYrjGHofhmQwMclLueRMpvxpBqqE54WNpo=; b=KjZfy39eg0mEp+TggXplLfgIRiYH48O2z4YNow3obOJT8UGjziJHPA6TVxxM+j9ady bCnxS2tlziwrMimpzR9CPBhZvHM1f4SZSRCULgGHmpluOKk91P0XwneoYp+kOs0RxJbZ W6+sTKUKDpyZhhfPALfcbCV1cFHbm71SA3+Z3x0WNidKxgfIS1TQoWXsqqQ2UUizLgrt pBEMS8kMOVCpsnSuQ0NZu9Ey2PEYv2pgFAWBVa9mjrElajTP3zEbGvJZafgmfVFUI9Gk wssBF+r7aaselgqm+0/jR51nGDUwISQrC6Qjq1IpYMspFWTzWlLz7+93jA57VTAjqYZF ftQw== 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 t15si31332240pgq.235.2019.04.10.03.58.36; Wed, 10 Apr 2019 03:58:52 -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 S1729526AbfDJIqX (ORCPT + 99 others); Wed, 10 Apr 2019 04:46:23 -0400 Received: from terminus.zytor.com ([198.137.202.136]:47389 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728410AbfDJIqX (ORCPT ); Wed, 10 Apr 2019 04:46:23 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x3A8k59W699772 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 10 Apr 2019 01:46:05 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x3A8k5Rt699769; Wed, 10 Apr 2019 01:46:05 -0700 Date: Wed, 10 Apr 2019 01:46:05 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Valentin Schneider Message-ID: Cc: hpa@zytor.com, valentin.schneider@arm.com, peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, valentin.schneider@arm.com, hpa@zytor.com, tglx@linutronix.de, peterz@infradead.org In-Reply-To: <20190409173546.4747-3-valentin.schneider@arm.com> References: <20190409173546.4747-3-valentin.schneider@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/topology: Fix build_sched_groups() comment Git-Commit-ID: d8743230c9f4e92f370ecd2a90c680ddcede6ae5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d8743230c9f4e92f370ecd2a90c680ddcede6ae5 Gitweb: https://git.kernel.org/tip/d8743230c9f4e92f370ecd2a90c680ddcede6ae5 Author: Valentin Schneider AuthorDate: Tue, 9 Apr 2019 18:35:46 +0100 Committer: Ingo Molnar CommitDate: Wed, 10 Apr 2019 09:41:34 +0200 sched/topology: Fix build_sched_groups() comment The comment was introduced (pre 2.6.12) by: 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: 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 Cc: Dietmar.Eggemann@arm.com Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: morten.rasmussen@arm.com Cc: qais.yousef@arm.com Link: http://lkml.kernel.org/r/20190409173546.4747-3-valentin.schneider@arm.com Signed-off-by: Ingo Molnar --- 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 64bec54ded3e..90e1a870fb0d 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1087,8 +1087,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 */