Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2601711ybg; Fri, 31 Jul 2020 05:09:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoa3UqN9As5Jfej88rM3Jcw7RGkS/G8F8+HPYBIo2RaRtBBfoVfeYKuNK0n1scuhuvivud X-Received: by 2002:a17:906:b2d0:: with SMTP id cf16mr3698367ejb.476.1596197349483; Fri, 31 Jul 2020 05:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596197349; cv=none; d=google.com; s=arc-20160816; b=kfupPANTw+yRgLDLPBobt7tolTfeCC16nGLGKErxcRZVe54QSckLvP73AYQOfpq7p0 JKzShVInXo135VswlOGc+l5vm4yHHZGH9TPNotRurYUEpHdjBlDC+tcnGlcatHxyTTLh tXMvQkm+0wGW+jkTVhwsDmdZrstgTyjWyO39MNoyIJ4KLbR2R7L/GEJVaLDU554lBjUF Nrnuq1gRha9/i2MxGuI4Sfguuc+szEfb5pQ40WSMsBzvD9X7IBu1GO3cLhZPipV6tjbJ b0ze343fP8ChTo/EWcg3QkO9pgOFzOtUTPRL4VJTCXKmwOKw4Z8CDoo9G8CM5/WTv1Md d5bQ== 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=Qb4GG9v/SIsbgN6HAkmYJ3ikBIMlgJERg6AjUFuA6zc=; b=D47ePk4iYSaMePHIMolC7b4ySeVzhGG5ccnj/nE/9GqJ1otO4WUgdBfEawXH2hVUv+ p9/roli6ssmoHo+0uQEtBrSnxNxNG2hVhXE35f1Tb6xjPmwCCZfPmu/a+C3oBkpFIIUi w96Tgey4/+b+VSzd7G4tdRCob2fAOBpU4QEUfNdG/auJneS5D0DX9R+dmayoTbA9mWsg 4AeNzalRg/c2RlftlRKTlYz1kok+r5tgb5winUqLJW4yjNnQMgoRCeff69MjmqY07Is1 IGZ+TsIFFpr5W5TY+5+DQmdeviPcI9YRfleZLs0j6zHZqIrt7C9HKJqTarK2eO7inovR msrg== 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 e12si5091239edy.213.2020.07.31.05.08.45; Fri, 31 Jul 2020 05:09:09 -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 S1733117AbgGaMFh (ORCPT + 99 others); Fri, 31 Jul 2020 08:05:37 -0400 Received: from foss.arm.com ([217.140.110.172]:56250 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732909AbgGaMFP (ORCPT ); Fri, 31 Jul 2020 08:05:15 -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 9356B1FB; Fri, 31 Jul 2020 05:05:14 -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 6EEA33F71F; Fri, 31 Jul 2020 05:05:13 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, Quentin Perret Subject: [PATCH v4 08/10] sched/topology: Remove SD_SERIALIZE degeneration special case Date: Fri, 31 Jul 2020 12:55:00 +0100 Message-Id: <20200731115502.12954-9-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200731115502.12954-1-valentin.schneider@arm.com> References: <20200731115502.12954-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 If there is only a single NUMA node in the system, the only NUMA topology level that will be generated will be NODE (identity distance), which doesn't have SD_SERIALIZE. This means we don't need this special case in sd_parent_degenerate(), as having the NODE level "naturally" covers it. Thus, remove it. Suggested-by: Peter Zijlstra Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 93a7ff52335b..c6ecc395c76c 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -204,8 +204,6 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) SD_SHARE_PKG_RESOURCES | SD_OVERLAP | SD_PREFER_SIBLING); - if (nr_node_ids == 1) - pflags &= ~SD_SERIALIZE; } if (~cflags & pflags) return 0; -- 2.27.0