Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2954786yba; Mon, 6 May 2019 14:30:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3+ma+Vqfkmn+YqwG06m+JdtoxaF49vfRpYzA8n1DOpHZz7GRc3ixc0FnJsZMMJUe3Y18l X-Received: by 2002:a17:902:8f84:: with SMTP id z4mr33902308plo.124.1557178209977; Mon, 06 May 2019 14:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557178209; cv=none; d=google.com; s=arc-20160816; b=EWVluARJGr7BLVB4Wsqzw7eqiSiXUVR0TqzksSKbiDSjaWXUwHapmh4jjnJaJi21nn k3J7bo6yI0yvB+W1v5WGKG1AcY3aLhfLzYOlHuSNPfrdwagQNst7qwve9nxu8VF3ogx7 JdPc7Am1ciBSkPaQvlkYXiOFMsyeW4QcQhZn90FOtPDifWt1AAqC+72iEjxjTpTRjc5/ 7n3znb+1YMV+uTVy5THKEsoaMVmUyrupCXPhv3qoHFjOqCRrpof3o3Ek54VboBTDXTGj f2L/3P58GJWKLGk7mpQ4mhW3vqPKT1tmdW+QCfyBKCFoVFx+NQyE1FNatPOCjMVoSsrX L+tg== 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=jVmiZbZfYZC3JFx+oWgtWRWL8Az5ovsjGS9Aqy86KfchL1BgUccO/Cv0LGwKf6IkLP QS5SBvlyHXOw6f9mQN/MtbpG0H5Bu4Ayqf67w8Mv5HV/oRyQhVBwNBWqpQFrdhvJ7B42 EU4hSVAFWRWIcM4tsye89k1GunZ/NLjmD2iBDOm2PzC/36HyzFCkvPsQlNu6Pe+YkF5u Ap38O2wQiePljbWsjS7NQeVJLilaeZFwRP1ugIY62IBUZ++dsBLX9T69oknBoqDwIyfS zqErnNIymaXBVgjqXeTJK49DYKlhvLDB+ss7QJzVsOGX40gx7S8dfzCJEBjYHbM3J4fc vtkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KecmMkSm; 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 f7si4182014pgd.155.2019.05.06.14.29.54; Mon, 06 May 2019 14:30:09 -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=KecmMkSm; 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 S1726779AbfEFV2U (ORCPT + 99 others); Mon, 6 May 2019 17:28:20 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:46804 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbfEFV03 (ORCPT ); Mon, 6 May 2019 17:26:29 -0400 Received: by mail-io1-f66.google.com with SMTP id m14so12404034ion.13 for ; Mon, 06 May 2019 14:26:29 -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=KecmMkSm4FviQCmpyzZxmkmq2BMwIBwlT88l0HgP2+BvRj59UQXrDOs8IYfkN2NV18 z/rn5EhcU1sBKCvRigWnhrxzNFbeB7KdLawnGtrFue+pdaLBYP2mndyo1EEmmNF5J+sr 11+BCO1E5X/ZbKRZ+kwIYxacG05SMEatZsQf0dxWwqHBhKqyojTDEEbletySXrnIlJLX INEIJmmHxeWDub0y4VQzzmfevcLsxTg/atg01QfyN2oDlxVCx5KgHoyVLJiExjuv1iUd PAwhNk/Re09DW6iZ/jD6wMfHdng6AA1343MxIDBV+m2xfGwjlb1kXnlIqIPvRZO7WWCY Decw== 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=XkU63/xQRRqkBYN2H/QYJ5vfmSsP3s3iMsSS3d62pZ1gthcWRshbWJvXcxvLBYcCT2 hb6IBDB5WYnAYwVovcm5cfxF1ut2fXjTYVFBmeYzM/YTUC8irrug14U5/PiwKw8fHT+T 05sH+/mKF5Jt0rbvdTDz4Z8Zrasv5RTLMjiKocIkFT3dyIVDC88ZpSOkh1e2r7uxaQci MMksxJ+Rq+OtRbxI5C3YvsfUtls1J1rWSc9Errl3wAm1Ms9tkuCzdXOdcodqEnMsiw1T dRpa5WCvpXsO3aZBOfvDJaqwP2rFexV4FOeaMwY2ENjHeu41Yc7fGsuV2KlieAXRl8g0 7+vg== X-Gm-Message-State: APjAAAVML9aol75qyi9UR5Jab8FO8iROWc4qZ7UqvemG+cUrFQJTosU9 2Bpkp0WEEspQQXmdmhl1HDk= X-Received: by 2002:a5d:990d:: with SMTP id x13mr2219388iol.248.1557177988794; Mon, 06 May 2019 14:26:28 -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 v25sm4268009ioh.81.2019.05.06.14.26.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 14:26:28 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 03/22] x86 smpboot: Rename match_die() to match_pkg() Date: Mon, 6 May 2019 17:25:58 -0400 Message-Id: <44a39ba11153106d2b029d9cffee1b062bdbce4b.1557177585.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.git.len.brown@intel.com> References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.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