Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430801pxa; Wed, 12 Aug 2020 05:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTqHQ6szd3strBj7o/u0hB4WdfU4fC8zK1T2CKTX/BHHtxG9/2ewI5cVJ+IMK4eDKwsALz X-Received: by 2002:aa7:c70b:: with SMTP id i11mr30084051edq.272.1597236936051; Wed, 12 Aug 2020 05:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236936; cv=none; d=google.com; s=arc-20160816; b=qFTrAYSK2BuHaMM6EtjQdHJfWfelDNGuIQb6ZzF94QE1G8cIL+I5Z8f1MvRp4cSPEM Avqms2OX2GQ7HgQAN+zX1SyB4Z1WspZobEMbTKrBx3yEGdmWB4EAxTexLxKv8lkCmSDg LtHgM3PVRp3Z4EMyRbAwRxvGPcSpdfy+o30vy87F3yqpkcVQSkhvuGS/OICQn74hzS0U Z1QcqRHRqJ5nvG6sjfWWuaVFGl4ebND1OvqIJkeunNgFTZqX+6J6TVaiFP399DOOzPnr xmGrUFefHxb3n2bty6l6XK9eq094+Ycp6dDPFK3J26B0zDAYL/dcouTd3iPSkd74NoS0 LTsw== 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=VeiYvI+qCnQGXlAIVRhhHzaFDNLTHtloSIosk1o+mkw=; b=zoEVdB6SxoGx6UurmyizAj2HGetsaVvBIzgjf9/ViYSaOI7s4WdU5wrQ8qu4D/eBVp 4CWLli8vlaq7a3MPq4a1WYr0Xw3OaQ0tDaELvJYFhLQPsRYqU/Vilb6luBot7pwMzViM 6mIhy9Xcmvw1ufjqJ4I+UXcXP9pBIQU5APXJsZcySWYGbpcDTYdEK6GziGzeYy3x+2mw 4/35kXBHU9ArgugAO0S5bYLRlc+7wLtg4MjbqBef9xyzw1grLG1a5XqiKZRYG72E8rV7 2lGaPV8U4YrxUW7Hj48fbpj7x9SYBuFCjRLI3wB/sg9JhCYulcY081toxVndFg6dJx8B +/GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si1152046edx.530.2020.08.12.05.55.13; Wed, 12 Aug 2020 05:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728167AbgHLMx7 (ORCPT + 99 others); Wed, 12 Aug 2020 08:53:59 -0400 Received: from foss.arm.com ([217.140.110.172]:44716 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728094AbgHLMxg (ORCPT ); Wed, 12 Aug 2020 08:53:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2EC1011B3; Wed, 12 Aug 2020 05:53:36 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E5EAD3F70D; Wed, 12 Aug 2020 05:53:34 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, Quentin Perret Subject: [PATCH v5 16/17] sched/topology: Mark SD_NUMA as SDF_NEEDS_GROUPS Date: Wed, 12 Aug 2020 13:52:59 +0100 Message-Id: <20200812125300.11889-17-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200812125300.11889-1-valentin.schneider@arm.com> References: <20200812125300.11889-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 There would be no point in preserving a sched_domain with a single group just because it has this flag set. Add it to SD_DEGENERATE_GROUPS_MASK. Signed-off-by: Valentin Schneider --- include/linux/sched/sd_flags.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/sched/sd_flags.h b/include/linux/sched/sd_flags.h index 021b909d3941..71675afa55f0 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -151,5 +151,6 @@ SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) * Cross-node balancing * * SHARED_PARENT: Set for all NUMA levels above NODE. + * NEEDS_GROUPS: No point in preserving domain if it has a single group. */ -SD_FLAG(SD_NUMA, SDF_SHARED_PARENT) +SD_FLAG(SD_NUMA, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) -- 2.27.0