Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5723783yba; Tue, 30 Apr 2019 21:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2KqVDNey3wpwIdSWPIi1S2NDCLpAdge/6evOsd13VZyglysSBpHD2/CltLWGmt6lA3oQM X-Received: by 2002:a65:4481:: with SMTP id l1mr71284956pgq.66.1556684832704; Tue, 30 Apr 2019 21:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556684832; cv=none; d=google.com; s=arc-20160816; b=qblyffXoBaYnlI5JbpGHRpP/zCZINkqwxFNDtJJEC10Ca4bI0Sh5kW9CBjNt3hHpvx Jfdp5cc4K55K3jpPZeGnVxzNN1CRRaHbHGMHIaBTN3Rk/GJj4yp5Frjn3AVSrl9DRjjk DWJvih7dzFDlPw8LYpzvB2mF8t26ZH7DW24ai+ecJVPBK98y8EG/kQSGH1KD3aI2EM4D Y0+VRhLD8e4Za3XpKKzTWDdd9K7qGtx+GcEhVaR5hQfviUSAH/jhANiv/9OiEEijwvJf VP44YHz8Ej8aqAtPfAE4TBD1E5LLRsqICgL7JYigOi1/MXwfx+SUJryQEKS0wvXxORKP j2Tg== 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=mpafHFf8x0kT+akoj1v7uL3rD/7fdNVIzn+Val9UFZ6NEDs+7Lo2rwuCeMYswtkIi1 J2RNA+aW1oru643egHybaspN8ao+QM6BGIfKP8FtExkE9L0ymvgDBtTkxDxHm7iojyky f153aQKtyo5f3TZwG7xlcV0nLWsA4a5zKhUuHHnrtfIS9gjr1A//ur7227M2v+VnSgHL OEkhI4/2Ndd0qK6GxgwJzveDCDkMKl+pExkH9Ek+e7SvEzNdls8rWsgR5e/nYSAZtr3b RPtMEfCAYGJUZCboNmm28Z3WqoE/nMDXkoMyi8HHOo7y8wb5oMPmhT4IchnGyAOQm71f dXLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KeCMpCbm; 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 ci9si21324776plb.408.2019.04.30.21.26.58; Tue, 30 Apr 2019 21:27:12 -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=KeCMpCbm; 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 S1726475AbfEAEZn (ORCPT + 99 others); Wed, 1 May 2019 00:25:43 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:56255 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfEAEYn (ORCPT ); Wed, 1 May 2019 00:24:43 -0400 Received: by mail-it1-f193.google.com with SMTP id w130so8318104itc.5 for ; Tue, 30 Apr 2019 21:24:43 -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=KeCMpCbmWHnDmO4vFxed+6LyK+vEOHspV/MpVpk7NiWuoT9ZcAyOFU8voGW1iW/ppM wXQcPmisswUjVEiWvGidJTVO18zHWvTbcK3NTpX3rN2xJXxZhEs1lDMbTfRPYjBi5vjZ 6CqlH3dHG4Ymikt17O6IfgfDnujmeU0hKS08YRPHquH/q7eH+2K7lfQl2oXoQ7cz2RuF yXSeQtGsWJN/c1SFtDgLWfiQQ6onqUPgnSx+p37sSirHLeY+zi24uT+wRvzC2jeJpAV5 ZjH0vVMp1EoS/NJ/nOMWmhWEZajxt6INMxLnsSS2F+ZWLls9lMbl2wHNjo7mfg1A2yVq 0c4w== 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=uay9Hxr+JHicCNdaqxQeNOPKGnNG6uBqmETJkPnPZ/7Ix5BwJtgrwOOA5zFmdMApdB xo5DBrYYusVS2UtAHoQRv3528kHYamw/ZAwFAy0bA6/7UO2EaDuu2xmfETBJCWZb1DY5 K0az6M5dF3UJJ3ce8nT++M25yRKRQC0j2e8t7belRmXPFI1EpLDTJyamtW8htA1E89ey RPT3+0k1u2RuhOnI0NgMnONL8AfEx1zb9FJQHrSITbQNEoRXBQCRoY3EXGLw6XsMWjW5 5pr5lY+iE0UeeF+NWuHeVxDrEfy4GYEdJBUrNEP8vdUCUju+GiyyIWTsKBGGRM/fQi4C ARBQ== X-Gm-Message-State: APjAAAW3Mtd6Ou4R+ckLCiMQGzN9ECNlSCKxW1+EtrtPh92/ohR9in+y ZJaMyVAPM7Dt/9HcTEA9qZU= X-Received: by 2002:a24:7a8b:: with SMTP id a133mr6487438itc.118.1556684682595; Tue, 30 Apr 2019 21:24:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 21:24:41 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 07/18] x86 topology: Define topology_die_id() Date: Wed, 1 May 2019 00:24:16 -0400 Message-Id: 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 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