Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1521885ybm; Thu, 23 May 2019 02:26:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBi7NBlWeQBDXZtei9c2dda6JhLcddflg5pqqCNNGKtHPr7MW3Pm0FQOM+bLzHoRn2frYZ X-Received: by 2002:a63:dd4a:: with SMTP id g10mr42966339pgj.419.1558603612879; Thu, 23 May 2019 02:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558603612; cv=none; d=google.com; s=arc-20160816; b=f5upRpxDX4pG2FW7+FrOjCuA6Y7TAFWoMuXNFyZZppxzU1Z41n491Pwv4JEv01AO4q 5ewzAxOPHKhLMpYuaiixtjXVKk2U5YimbcfbOVj1O+jW5eZVLl9YCUVrnXWgszoJtZWE MchsjT3lvUbWEWtakvH2F7f3l2RYz1UL2F5JyK4LtjFM2Vs0+aosZ9+7mK3iH+ZH9kZ/ lUDSRU7PQrsO+HkqwedQ9vmkoW1d9z+HOo5vw9PX/pl+v32mmtBBsSOuBNa2Cp6wA+pn xiDjxqhjLycwrj8jdsboDj4sPVLkT4tDpeSu9gfyv/mqH6mPyjCjMV53ZT8EL1CusXcj 5WSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=JpXg7PCIBnHg7K2O4YfJbMCa5KbgdTOerhhDxTLIkI0=; b=zZF0dpDEMJ+qU9d8xzkkL3N+SHjqIf1UJEZSscY06dCywXN6tXICynoiS7/b67mxof NIUSK12PHJvYi31XbXTrVPk8lOC/l4QTgMu01sFQNDjtcHlE5pmJr8Ml8zX400Rc9dKU gfN9ByY0IHGhTufXBpd4g1neX3OHO6CuUU6KxdNQ+JwkyaoUvAPw+He2aZzZpev9WLLc ndzvO15zFGJYGrCoUqe8GarJmiQihIuH+nqTsTYNXwnZO66+1zIm70sYdiWXeeNyFsds Jy6DWiUFPFSEpIQZVGNrGSqzIbU5nDKWWXe1SmxygoCrIgU5d89hvlcXVLxsMLTkwmgR j56A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=BIPw+FnR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si29505828pgb.543.2019.05.23.02.26.37; Thu, 23 May 2019 02:26:52 -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=pass header.i=@zytor.com header.s=2019051801 header.b=BIPw+FnR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730103AbfEWJZA (ORCPT + 99 others); Thu, 23 May 2019 05:25:00 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34645 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfEWJZA (ORCPT ); Thu, 23 May 2019 05:25:00 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x4N9OnQ44041542 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 May 2019 02:24:49 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x4N9OnQ44041542 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1558603490; bh=JpXg7PCIBnHg7K2O4YfJbMCa5KbgdTOerhhDxTLIkI0=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=BIPw+FnRrlElXESW/77T/LDSs/24qwyOTvV2uZwM8zeQkBSkgd8do8nCixcottfzz MyJX2xpbr81nE5BQDgBD0oaLEFhwth8Nc32ZnUXuVxiow2ne7aiz9TkPii9HeDvjdY VHt5zTh6RTasH2iII6WT648qRNqYZn4jtQSRKoUnW0YnMvsmYMgzTsDEJpj780V1Kz 80JA3vWcM5MXtAFcdjoTpMN5DOQGER3SKxe+B2wgXd4VmJs3k3wbdI8DKAgdRkfSx1 9xBh4p76NMYNJXzsXrHb9fLbQ3qXvvIeldTOr4WlBghqyffP5PJ5YW+/kcM9SCuUUP 1zRQgbp84xRQw== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x4N9OnWU4041539; Thu, 23 May 2019 02:24:49 -0700 Date: Thu, 23 May 2019 02:24:49 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Len Brown Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, len.brown@intel.com Reply-To: len.brown@intel.com, peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <6463bc422b1b05445a502dc505c1d7c6756bda6a.1557769318.git.len.brown@intel.com> References: <6463bc422b1b05445a502dc505c1d7c6756bda6a.1557769318.git.len.brown@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/topology] x86/topology: Define topology_die_id() Git-Commit-ID: 306a0de329f77537f29022c2982006f9145d782d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 306a0de329f77537f29022c2982006f9145d782d Gitweb: https://git.kernel.org/tip/306a0de329f77537f29022c2982006f9145d782d Author: Len Brown AuthorDate: Mon, 13 May 2019 13:58:48 -0400 Committer: Thomas Gleixner CommitDate: Thu, 23 May 2019 10:08:31 +0200 x86/topology: Define topology_die_id() 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 Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/6463bc422b1b05445a502dc505c1d7c6756bda6a.1557769318.git.len.brown@intel.com --- 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