Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5724063yba; Tue, 30 Apr 2019 21:27:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrIkZFJXV+jNzhq6/9qjolc5pD8p5jfy4rp4FG2wuWlMN/ce5rCHNb/zkrCGbdgmdHzePy X-Received: by 2002:a65:6145:: with SMTP id o5mr14364403pgv.262.1556684859852; Tue, 30 Apr 2019 21:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556684859; cv=none; d=google.com; s=arc-20160816; b=Qxjo5d+af2JVBAbsQGfh/YnpI70gV4ngCSr2f0dIs2jOVbjCjEUrGL13Ou4kwnF82y jRxP2xi8uS2mY7FQgNbPZvfZdwnAFmxwtmzD1sBUqeSTeew8fKtL9eFugRd++6jzECCO LJgDTjqhE7fD58bNWzqXfhmDj/umuIA0c+C2XHxjT6oOYLoWPea9W9r/ZqwsHFBE/lcN iZsSFK28CZOtiOHfu9PL0paJDaF7XZCDr72A4pCgDfd21SC3W7ST9jPBd6CXHrGU9kCH lDgZSFG+0TPbOvyAYpV6QR7rsSkvNeV9T6qHUj/bnQyjfNxjfGhcmZWWx0MsjvIiSbd7 CrgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=uD3OvFcls30SXN52XBWKTLWJTDIBIfXTSrwZineFKm8=; b=O0iHE9HW5pUq/XMO+JZx9fGh18jhEXQ9pMOIN67csdvVqjL/bNQITwYaitXYaaM/UK xRrs6fMqlNv5MUW3i3+dFPDw2HKGcScUN6JD9CnnpdAklRSKAXROeW1F+m2zZvbotxVy Da1ZZ3Rrez7qfdGbTWa54NTS5VbeuFe1ns0VUBAUpeJlwWosH6/U0EIQvpw1wwMaEquc hFb7einK0cWvNexIJI2LI3ADP2546H3vBpw5/whSaTnbMDbqoLInZuoRwKOXaZrc6bqi FjOwjNBcLukJbTVoTS7Np/WCH7DGqolJJdsmRCFf0wZdiZqnCdlpYPxytT6BFd2E4p8k nAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=g6Qo2Dho; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si2295649plo.267.2019.04.30.21.27.25; Tue, 30 Apr 2019 21:27:39 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=g6Qo2Dho; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbfEAE0C (ORCPT + 99 others); Wed, 1 May 2019 00:26:02 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35388 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfEAEYi (ORCPT ); Wed, 1 May 2019 00:24:38 -0400 Received: by mail-io1-f68.google.com with SMTP id r18so14121213ioh.2 for ; Tue, 30 Apr 2019 21:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :reply-to:organization; bh=uD3OvFcls30SXN52XBWKTLWJTDIBIfXTSrwZineFKm8=; b=g6Qo2DhocXBthkfzHjb5lXWzSD2Rg61uT1VPPiyZmosOuPUCtNw/L7rlkgjhjFeawF AYy6RKE7m2aJoljKCiWbwtjFjbi5pqNovdknBJi9O020X2Z1tJdX3FMYHH5Fri697UHf w3Rfk26XjZ91vPbizxJILLB2Tey1S/qU5wHuiFtmVWeeB+a3F9oUIaMpkRIRM3D/+/8i dRFcHJT11Xi12wIYidmJhPivJC4VAFhdpCgrsPc4N7mJU5ZBuHrwPYRo9cek05hkHTGx RDT5lIzwP2Kqmm65DweyHwMqZqjOkbtCpwz3G+ogiuYQnMoDYJTE+MUMQId0oruLCG1R v01A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:reply-to:organization; bh=uD3OvFcls30SXN52XBWKTLWJTDIBIfXTSrwZineFKm8=; b=TRhUtCl4abav+5ss1sZmNiDVxiDHiLmRu5M166d7unYjF5tEQb9kT9alrF1uxo50d5 H3Ddwh3R4xnW+nzVHnwLxRq9YPy7p7csjm08RsvFPo2pvAjYnFEt95Od8C1lfvAiHh/F ZL8B7e03QTyFjTAEquzL/yO4zp2K4JqWSdMqfzFxTLOhmATetN3mZtmaxDwxEqBmdp/w LwNjWvPUszkIMImGlg+zbMKNleWBsqWrdMQBIEJUUQMSBzUzj/E2C2ihjVKHnZDRCorv 1i4uHnR39Gu7taDRAm9KvVqYrE1/fOPkHpetPKM+JSZha5m56pg+55nGFIbswUInbky3 7SpA== X-Gm-Message-State: APjAAAXTbH42pvTmNG1eSCoRPHp1aWyW+dAT9gaBLUuuZXJpr8I8a+Wv ZpOGKUAkkP7T8iUn/s2lNhg= X-Received: by 2002:a5e:8216:: with SMTP id l22mr17088870iom.269.1556684677910; Tue, 30 Apr 2019 21:24:37 -0700 (PDT) Received: from nuc8.lan (h69-131-112-51.cntcnh.dsl.dynamic.tds.net. [69.131.112.51]) by smtp.gmail.com with ESMTPSA id b8sm2569728itb.20.2019.04.30.21.24.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 21:24:37 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 03/18] x86 smpboot: Rename match_die() to match_pkg() Date: Wed, 1 May 2019 00:24:12 -0400 Message-Id: <44a39ba11153106d2b029d9cffee1b062bdbce4b.1556657368.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1556657368.git.len.brown@intel.com> References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1556657368.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Len Brown Syntax only, no functional or semantic change. This routine matches packages, not die, so name it thus. Signed-off-by: Len Brown --- arch/x86/kernel/smpboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ce1a67b70168..3f8bbfb26c18 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -455,7 +455,7 @@ static bool match_llc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) * multicore group inside a NUMA node. If this happens, we will * discard the MC level of the topology later. */ -static bool match_die(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) +static bool match_pkg(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) { if (c->phys_proc_id == o->phys_proc_id) return true; @@ -546,7 +546,7 @@ void set_cpu_sibling_map(int cpu) for_each_cpu(i, cpu_sibling_setup_mask) { o = &cpu_data(i); - if ((i == cpu) || (has_mp && match_die(c, o))) { + if ((i == cpu) || (has_mp && match_pkg(c, o))) { link_mask(topology_core_cpumask, cpu, i); /* @@ -570,7 +570,7 @@ void set_cpu_sibling_map(int cpu) } else if (i != cpu && !c->booted_cores) c->booted_cores = cpu_data(i).booted_cores; } - if (match_die(c, o) && !topology_same_node(c, o)) + if (match_pkg(c, o) && !topology_same_node(c, o)) x86_has_numa_in_package = true; } -- 2.18.0-rc0