Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2954453yba; Mon, 6 May 2019 14:29:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTiNcgJd3NASztwj55A5e9ra4FH9yaDM1Zez44M3rQ3JHsNZr+j38yxGRFP1zC1OiQa36B X-Received: by 2002:a62:6842:: with SMTP id d63mr37340742pfc.9.1557178184998; Mon, 06 May 2019 14:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557178184; cv=none; d=google.com; s=arc-20160816; b=j16+039aMsBgancxwueJkUkbe75Eu/kVkkU1wg7u9DfTHsPnN2k11g92N1JSMv+QPJ ZwwNlAVKgYp/vBthc3RO2PoO+0xHjoZ8c4ynvyt84/Kkqj7lxMpzSj6j95cmE8VJugMo SUpxcisVX7TZLfQwJh6ji/w4dFZ2Fq11hCY4J5bodjeiCft0SHqvk+NiPpfx4G5CqEzg MU9J0/1YyULIfacIEKqAue278LgIUFdVBE2lfvGei/zgqf0vAScIApn2pnaX5lGeQ7WH XeO+OsIEfIxVXhjE8p8mci+jUlV+Kas+8MQvaKrEc0mLVygJw9zS1m8XKFPMi4qsoi0H slHQ== 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=yIImtsMNTtBSlvN1QNVma82QIGt0h9DTz+k1trYzhKw=; b=wXx9rSuWELYRKIhA1DpAlFGY6H80VTrg1DgSYO+HloPQ7L3KDWUHpO3EWHfshiTaMt sdsrYlCVsgklPBvxwTDmdy+ZJTVHy0mWz1558eG04GOBURZFIEhoDjfWxyXXTFHtRYsq zgt7wVP+kqPsmY+7xS/6Xf6j0zj35Or0ywKXFM8ll/4N9BnN3aMv3A1jtJavMaKObmt1 JJtUs3Mp3u7EbYtkc9Pu4SWkkdMi+GoXLCO+x45Vz1naOQSp6NHVggTIcVQCRySfN3Td m6h/clg+mP9oLbgGaw+7YQNJoeQMxPv85CpzUKDzv5AGfDRGH/fv2GUpdBdVhHNFm85K C48g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Z5QWO9EK; 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 v16si15626677pgk.131.2019.05.06.14.29.29; Mon, 06 May 2019 14:29:44 -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=Z5QWO9EK; 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 S1726912AbfEFV0h (ORCPT + 99 others); Mon, 6 May 2019 17:26:37 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44743 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbfEFV0f (ORCPT ); Mon, 6 May 2019 17:26:35 -0400 Received: by mail-io1-f65.google.com with SMTP id v9so8559565ion.11 for ; Mon, 06 May 2019 14:26:34 -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=yIImtsMNTtBSlvN1QNVma82QIGt0h9DTz+k1trYzhKw=; b=Z5QWO9EKEnKxuoWH080agxMVMF2qkG9nDlGTN6ACWA6jOmzzwYCozPIcxaLYh43yi5 OEBuzFWm/EcXmxXFe/fRdl6cgN2ncOQqExHBJn2lYGPG5pdCkQ7FwvXVvSOMC4c1QGge LniKPrZWDR9QLT9qRoDIHd6Ggo+TzczGln97YLaK8lkXjWeltiS70hZUetySxeBR1fWk h4pM1r3dOI8CzIXDV+Ez16b/4HvCTfDFLD9kCqUdcYrFsBIr//9L9fbu5Bl6s7/VYkFS k10sebnwpZio8Chfx4JMnp9lx4zyyUVhdfH/xxyAYr2Cn8yaJ+mk0I++abnSFpJmOIUz T+Xw== 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=yIImtsMNTtBSlvN1QNVma82QIGt0h9DTz+k1trYzhKw=; b=BiCcjX01vk+qTEm+4DkJghReuIdCD12P6FZm8wCvsrJ8R75YUA1sHLgaKj1qu4nM74 pxLCe3MhlMjRpovSpdREVxxv3xyb3aG3hoc5qXB7bkwnl9wLfS1UyfjvcadzxxIgOTb7 SaEimtVMIJK35pzKZGIL+5JYkj1Eu0HCrOK5LjIyrcRuaJKUs2syYz2isSwganLoPon9 ZizN/u5y5kD64IfMOc9HUAyxSg3jWF3SOcOFJgGN8Qwl5/BiIh5yNihGeAwZXV9uxiXQ O2+HNrxA1UYSQMiWiIl4Aq4UCC7nZkc0d+psIxVr07TR37gvOLcK8CP271mVPpjA1lP1 47hw== X-Gm-Message-State: APjAAAUtu9xjjTWIPirymRlMFAmYrgobJdJNGS3qeN1wRIkc6bOtIV9V PgqEt90VLFFzQZDF161biAY= X-Received: by 2002:a6b:bd07:: with SMTP id n7mr19652395iof.54.1557177994091; Mon, 06 May 2019 14:26:34 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 14:26:33 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 07/22] x86 topology: Define topology_die_id() Date: Mon, 6 May 2019 17:26:02 -0400 Message-Id: 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 topology_die_id(cpu) is a simple macro for use inside the kernel to get the die_id associated with the given cpu. Signed-off-by: Len Brown --- arch/x86/include/asm/topology.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index e0232f7042c3..3777dbe9c0ff 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h @@ -106,6 +106,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu); #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) +#define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) #ifdef CONFIG_SMP -- 2.18.0-rc0