Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430540pxa; Wed, 12 Aug 2020 05:55:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGvaugqDO6zIqbxVZ+dQxZSY558iboY/6KobOZaT9zRUYhi/zEn+QnKTekxEZGH2Sx1L1Y X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr30941683edr.167.1597236906535; Wed, 12 Aug 2020 05:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236906; cv=none; d=google.com; s=arc-20160816; b=QLbE5lCEi31yoVk8bU602mP3Dxh+N2hPxu0vskOFaoddfUDHIKiHOL/qOQFncg22l9 Y+HUrqbZ2jkgWrOrh2ptImW65XwRtSnxZuL6H0J/k194F7K7s8KnOcHew6GxQ22QYyMY I8oa0J9n2G/k1/pNPDZdYBznXS4sVsZP9bDAUoPf/dkWovVUCPrKgaTEEac275fOlxhR YEj6Z9UK/r2vQpP9cU55VHvb4YQoN5elUMD+aNV/TN6c18+hiRNJQAPF7yQt3yZ/qGaH QWx36jLI8buiPAemjA3UYFbrIa7chtyYIEEWQ+yzGSrJUjCxg+IMupp1goFHPtbF9wk+ 2E/A== 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=BQrnBCA7iN/eJEakPP0+e93BDoZL2JiioVtn5tfgPpA=; b=rF86rQYgeJSvrIbW4eO8XccXi8K5I5xSMP3DV5XcG+NQ3WQlZYmaPoJKWdZVhF9qW5 FESrwqZWxwvqLrWUl5wB5vfcySlMu5rshBnu8f7+kuEEI5M7ZEhUx0IAsmJU/cauAr8n J60LyXLA+GbYSHU6mHBmkoR+Gf1YJwVRTNhiT7wQ17pipdFl0YSGxFqY5D3UnBWWG0A1 UKVj20HEKukgnKqMxOPAFZGnMWeFizFaJZ8weZYwmkOq2sB8PlwunYMQPZ6ie5Myz68U BHziKqt95e8Lf8RadDTPvUtjrZykAGD558vNJJr9ZTG3QUwIvIpR+zTQnHwbvVe/yRoT DviA== 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 k20si1133686eje.105.2020.08.12.05.54.44; Wed, 12 Aug 2020 05:55:06 -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 S1728090AbgHLMxr (ORCPT + 99 others); Wed, 12 Aug 2020 08:53:47 -0400 Received: from foss.arm.com ([217.140.110.172]:44730 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728109AbgHLMxi (ORCPT ); Wed, 12 Aug 2020 08:53:38 -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 A4C7831B; Wed, 12 Aug 2020 05:53:37 -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 658333F70D; Wed, 12 Aug 2020 05:53:36 -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 17/17] sched/topology: Expand use of SD_DEGENERATE_GROUPS_MASK to flags not needing groups Date: Wed, 12 Aug 2020 13:53:00 +0100 Message-Id: <20200812125300.11889-18-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 All SD flags requiring 2+ sched_group to have any effect are now decorated with the SDF_NEEDS_GROUPS metaflag. This means we can now use the bitwise negation of SD_DEGENERATE_MASK in sd_degenerate() instead of explicitly using SD_WAKE_AFFINE (IOW the only flag without SDF_NEEDS_GROUPS). From now on, any flag without SDF_NEEDS_GROUPS will be correctly accounted as a flag not requiring 2+ sched_groups. Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 8064f495641b..3bb145ef5abd 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -165,7 +165,7 @@ static int sd_degenerate(struct sched_domain *sd) return 0; /* Following flags don't use groups */ - if (sd->flags & (SD_WAKE_AFFINE)) + if (sd->flags & ~SD_DEGENERATE_GROUPS_MASK) return 0; return 1; -- 2.27.0