Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5538097yba; Mon, 13 May 2019 12:38:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQUCjuP8dHzB7vsgliynloFedliRN8B1Zr8MxLYgH2yLxIMAN0GTk0Lfa3lix9RHa0a4mC X-Received: by 2002:a63:7c6:: with SMTP id 189mr33004146pgh.247.1557776311304; Mon, 13 May 2019 12:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557776311; cv=none; d=google.com; s=arc-20160816; b=P3y/ER7t83DXDXtYibpuvzoscR0jhKrQ2ukdszI2MOQ4cx4+WDMJwCNU9oqxe1zOTr B5Ab/ZKoBNtLIOUKQ7NKAk7WjtiVSVEm9HsTUi3Ex/XasSYeClBJfS8hmWjie6B4Rh8B frZ0iCsHHnH9vU6BzR6yfptRnfY0BYUpIBfKzvRf9XzEGyDcV0zZrC/6R7/aZZN5l9yV wGPTCVkAaxFbQFuwQfoW4OPzk51m5zPypXDtY4BKlUvVX+cdeZlyaDGlPZlOHXQidkUe x5m4cFSNWxGi+zjWwjppkrnpNKQw+5+phw33H8FMPr+HJwfAEKFVN3SJno7ZdwOgl4f7 NaEA== 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=aEBBWo1NZxXfaWQhf0BEBwi10hVOXjHz/F2wq9X18qedMtO67MpezLJjfA5GlHCegP PRpGV0zllIlLQJkw8Xt9YLKg+0Ou9nZMfVx2S7JyvdiugvqQtwLNojxfzQMQQdzhKM4G mBUdQvJhJ/VWXplfQq40rvMK7tBJRN3JMeSZ+ttMNJPdSN6WnmPWtz1dZRLR6EAT7TL+ 2T5cQJpZ/YvDWpwoLK0sYpXnmRpb9zCFR5f8yZfSZ+tDv0FOKP+5YVXJIieC1YlGyxls 13uAFOWKN5kf0tgz/RJ8yIwGk21h5NqxQqke81gfUx7efFBG+583Ch/3ZtJAVqy7WAZ3 TVHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NgxWf0cD; 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 f7si19158043pgd.155.2019.05.13.12.38.14; Mon, 13 May 2019 12:38:31 -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=NgxWf0cD; 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 S1732043AbfEMR7W (ORCPT + 99 others); Mon, 13 May 2019 13:59:22 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38589 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732029AbfEMR7V (ORCPT ); Mon, 13 May 2019 13:59:21 -0400 Received: by mail-pf1-f196.google.com with SMTP id y2so2144164pfg.5 for ; Mon, 13 May 2019 10:59:21 -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=NgxWf0cD8rKV/FIt1+SAehvjMKppD254dxK8k5PeEf4Q7dv6zM8/UQMZe9fpv3lljE ur+q65soOJSCDvS+0AGuCbEFl4X7ttsoQ3SIJFzNkWXDeui3hdM1vPU7Ngfz+zXfkrD/ 7m4GH1QmlZXJuUpB1rRjqrKlVnzHj68i+xsVdJVcWJiwdFafVSbEyjU0hdPz+RX1wHzb bFUTRhXrehkdefyLbXsT9TbEp5p6e1bqZTC59QReY4DtmKMgEoAUa+urIPVHIGtt4RuE LRgItPrArzJ69EF/iPxWGAd/IKBkLii4C2ARl4/2nkRKmz+9RA5gNUz6q5WQbkP3TQHS BuIA== 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=eLdU+h+m+dXh/T7kFZDZqsMCik0FhWrjKLq8kc/uMzVxaA3BquHUVxSJ9rzY/B7A+o SlmQz0zYCGl3li6OVk4AhISOM/eNZ/wFqSQ78yGKUILYWzxJobSTa+OdPuixyepDdC+1 S8zv1w/C1igxFmG/QMBo2RbDin7LMMmX2uzu52g3N2/zw3Jn3QNoSuDEY7xsvk8W6eCV +/+J5dLsceLxjLZaUe4fHL6PoLZskgBGoZgVoQxuVK9WuzG95j3vZcG3teWVTwi+VWrL qY9CLSh8XFG6fKtBdVfufgEZbHgLzf58Sfy+oPZw+uQLwcRjIcJ52ngT1aSFRFD1BvTr 0i2g== X-Gm-Message-State: APjAAAXhH34vpLsbtbtjwcuJgJdCOs4NlyJ6swrFTaXt/ocv3/X+6Ui6 keqMIzAGSUzkG1HegMSWuY6TCJig X-Received: by 2002:a62:3381:: with SMTP id z123mr36371965pfz.42.1557770360877; Mon, 13 May 2019 10:59:20 -0700 (PDT) Received: from localhost.localdomain ([96.79.124.202]) by smtp.gmail.com with ESMTPSA id s12sm9536266pfd.152.2019.05.13.10.59.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 10:59:20 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 04/19] x86 topology: Define topology_die_id() Date: Mon, 13 May 2019 13:58:48 -0400 Message-Id: <6463bc422b1b05445a502dc505c1d7c6756bda6a.1557769318.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <7b23d2d26d717b8e14ba137c94b70943f1ae4b5c.1557769318.git.len.brown@intel.com> References: <7b23d2d26d717b8e14ba137c94b70943f1ae4b5c.1557769318.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