Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5384374yba; Tue, 30 Apr 2019 13:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZSH1fosbTaY1C9Wnd1UoiPpFtTVuuClXKeRsg3kzJ9+mmPTai3qJebkQ2WSr/attv5h8C X-Received: by 2002:a17:902:9a0c:: with SMTP id v12mr73538726plp.184.1556657867880; Tue, 30 Apr 2019 13:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556657867; cv=none; d=google.com; s=arc-20160816; b=pBl8LqgwPQYE8isOiNgnUeu2RxXSCU3nF9EKVYa65UTm3FKT1rxh1Lx4mtmpROYhxV T2T4HQP3Z8LpeJ4F9LZ9Raz91j1N7tYGhH4+FoxByUIylRuyaauZM8cvC919VqCFhkND PD8GxKPEnIOP04gLCRd85LKig0OGG2fhYJ0kmZ6rxoNrk/iWpA35yaULEOjwxMDsAVr9 EeFcqjqiarnFIB9GeNuwiL4qvOW5qrJTUPRi0YupK+bQcR3tQptmWplLrB15B2cmoVyb hypWZc6kfWdHbXfcPWrZkwKl0vM5N5LyiTLt3MekEr6Kiij1ek71W3jMdF5RMlLEnbz3 +wkQ== 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=AA9rmVBDfPkvX3TMr0eqVTS4YBr90lGzdpj5gUDL6UE=; b=fTY0acc5mafMfK4YMP+1E1GNGK9shnwyQW+KFr8nj+fLYC7DM6ZKzq/J3ozcZASa22 Z9z/ojj70FMjREEFAD7nQNc96hmO6k2pNvlXHJQAOIB8c4LM3q/JibOddzb0Z7GIAyvO PlyPvVJBFntX5ca0xB/JsLHduxzPWEtCHOB/ab8J9jzyiiD0+iuzCcOhh9jb/XRbQyLA 1Jg3JKSxOwHeSs3w1HesH2vT5LPBLwAUzSZoD0OkBSk0Kh893fcMveeFZIWpDFsjhiGT ZvSwyfYCesMxTY/EukG/xoRf6/CsxHiObh1fi9pqTSkicQQfe/xoGPaPUDTwBu4Xsgqv xIiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f6q2+Qqk; 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 f7si38597372pgg.234.2019.04.30.13.57.31; Tue, 30 Apr 2019 13:57:47 -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=f6q2+Qqk; 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 S1727273AbfD3U4Z (ORCPT + 99 others); Tue, 30 Apr 2019 16:56:25 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:51131 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfD3U4X (ORCPT ); Tue, 30 Apr 2019 16:56:23 -0400 Received: by mail-it1-f195.google.com with SMTP id q14so7099049itk.0 for ; Tue, 30 Apr 2019 13:56:22 -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=AA9rmVBDfPkvX3TMr0eqVTS4YBr90lGzdpj5gUDL6UE=; b=f6q2+QqkpXDE0R499RBDOtLn8oHnJrCzVCibV/m+msvISUipiNkPu8vVii+EWd+GJF DmnFXfFW7bUUi1hJVhTTSXkKb3/ObqWo2JybjokJyLiQnglDSc7/JqGHW/uGMp55oQ3M VQq9rxaihcMvu++8hb5wNg5lRdiHI9u7OYawODhgCUfKOrL1t8dc8N2qrPzOvvqtOrer sO2ENMsC3d/nZlqOoZl0La2g7i2yEtybvM3qZLff0Km4aa2ptbDXm/u7UHP+7fY8UZ6s eHkTPMAtZuLC3JS+r4VwpxZVcudBnhPktzOISNNV5PXthT4Ubh9HfQnYFH/qoMqS7CKP n2Sg== 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=AA9rmVBDfPkvX3TMr0eqVTS4YBr90lGzdpj5gUDL6UE=; b=EtvKacHooht1nlKUD9eo7iZcaSNZPE6N75CIZhYxy123tNt+Z0O+Oig7MXCv31OulY ZN4Ua/6yZoUB8igJHOrJzCPHcp0dmK0es+0kR38TkpJfHPs8mMPNrb7c52ni/mKS0as1 +C4JIIePEtaAVTikOGxpHPVJXvKibLkrNMorojC5SOUL7GWZzJTAVs1Ad46MyPsok6VH u59MgHbi5s+ocpwYg+gtDr/Nb98E+UjRKEFraUVe2JVJjUwwgC5pe3wxYXxYXlr8mkWV fdvNF3l4dcS/YFNzCaFUElUGwSnM7Fh2v2qmeMLNYtTWr5tNoTqa7wfcv9AFTttDNugh dmJg== X-Gm-Message-State: APjAAAWEZmeNy5ZK4sKHvW7egFmFyidVo4d70MA7Um9w+03l76cOzwTo TYBacmJCXPkMdWkHIPpy6hQ= X-Received: by 2002:a05:660c:6cd:: with SMTP id z13mr5575328itk.128.1556657782368; Tue, 30 Apr 2019 13:56:22 -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 s7sm9799349ioo.17.2019.04.30.13.56.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 13:56:21 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 06/14] x86 topology: Define topology_die_id() Date: Tue, 30 Apr 2019 16:55:51 -0400 Message-Id: <6b241191bc9ec6924855b71ee4fc84906ccd4e6c.1553624867.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <75386dff62ee869eb7357dff1e60dfd9b3e68023.1553624867.git.len.brown@intel.com> References: <75386dff62ee869eb7357dff1e60dfd9b3e68023.1553624867.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 453cf38a1c33..281be6bbc80d 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