Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430543pxa; Wed, 12 Aug 2020 05:55:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNABOgcV1N4OyUK3wYOSu3n89xwYkupmlDIjD9p2eropJRQ46wXILw5nRUFXhYcBHjmToB X-Received: by 2002:a17:906:e118:: with SMTP id gj24mr30096013ejb.219.1597236907100; Wed, 12 Aug 2020 05:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236907; cv=none; d=google.com; s=arc-20160816; b=RMK2XDzl1W/oNBnSjo4jZ3NarNk9q59BiMlZMuPHwhM4gKpTssKcpb3Q/yoR4g794j 1pr8I7fqbMGLqgb7BuRamcLyD08/twg1ThU20a9CMqxCJxQr100s5sUl9AZXQYZvGkd6 jwQlLnt4mr70vymhwRNBbwN0RRBGLTa02z+LV8dNBCXjPiOSW54ZG68/pLzSSaWdqChX 68EBZUn9knkM2GfJ+mqe/ZF0cc54rNWFURNvxyAqrGDpOvcVmkUvgVpqKX04Y3D8QErX 8fHk9yBCYOJcYFpUcTc0hQvZrENDiItW7cDIVFgd9aBvaQrg/xX6CSB0Ckddch/ecDAE ZmJA== 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=kytIpc9L3X90AD8E7TgkHm1/2XDwYxUUfnIZ8wBMQfs=; b=xcnlDxe+TiGHRFBrFrOt6VWMmyQSRWlFpwaYYQYiD5c5CZm1IZVf0Fb0Gn7CD5s5y9 ockajd5nd6kplh4H5lbw6zA3xVeLxLf/VOS+5yJcyiJBDHW4pcGoEgR9knNzHvD6pZxb kJFg50NVVVcG69coR2n60OFUlFM+u5+ESH/AhkxnrhUNTBr2JS7rHDn9LNnwuzeA78MK 9qdvdLXjoi0uuirhAoLYv0osbqEVJW4xBMG4f3v9nGv1phsrG0CFqvavPqlAe43YJD/4 IWzbHyNsT77SkPj22qtr3c/qj8tJB96rzCJNawgV6v7eVPfrLrNxAd6Y+ammNjeXt4Fs VUAw== 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 x25si1129499ejy.383.2020.08.12.05.54.44; Wed, 12 Aug 2020 05:55:07 -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 S1728144AbgHLMxp (ORCPT + 99 others); Wed, 12 Aug 2020 08:53:45 -0400 Received: from foss.arm.com ([217.140.110.172]:44704 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbgHLMxf (ORCPT ); Wed, 12 Aug 2020 08:53:35 -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 B02891045; Wed, 12 Aug 2020 05:53:34 -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 70E713F70D; Wed, 12 Aug 2020 05:53:33 -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 15/17] sched/topology: Mark SD_OVERLAP as SDF_NEEDS_GROUPS Date: Wed, 12 Aug 2020 13:52:58 +0100 Message-Id: <20200812125300.11889-16-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 A sched_domain can only have overlapping sched_groups if it has more than one group. 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 f855f80f0052..021b909d3941 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -143,8 +143,9 @@ SD_FLAG(SD_PREFER_SIBLING, SDF_NEEDS_GROUPS) * sched_groups of this level overlap * * SHARED_PARENT: Set for all NUMA levels above NODE. + * NEEDS_GROUPS: Overlaps can only exist with more than one group. */ -SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT) +SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) /* * Cross-node balancing -- 2.27.0