From nobody Thu Sep 11 12:57:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83EB7C04FDF for ; Mon, 14 Aug 2023 08:56:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235205AbjHNI4A (ORCPT ); Mon, 14 Aug 2023 04:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234862AbjHNIyT (ORCPT ); Mon, 14 Aug 2023 04:54:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695F51AA for ; Mon, 14 Aug 2023 01:54:18 -0700 (PDT) Message-ID: <20230814085113.646802453@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1692003256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=hGG18YRpAzYxpKTnwH+uiIi5fZmUPp4aoRZn/mz3oxM=; b=UUYvQhLGJ6lL+hVqyH0uLzifGsuHpLWV5WLTrOxoxplN9w4vxb+J/Kb8Z6aABnoZJsuQ1k xCjkO9P1cyj7ygc8QmIOq2Gfk0EmlO6984UcntvOsmEKuriq/0IxNkGMRBtcN8vQwAeHKZ xLUnSQ/U4WHtkPYHz+/F6Vk5RrnqjKbHQCcVdDO3nBcQFe4MxuW9zyG89pI4WtxyAKJduv f6nsVDTAIv19lwp17ceeHv9k4kijfmNDf503rumbEzr3chfvQcxWR08SHYq4AV32cSIzA4 gFSq4kTgKYKGvTbXN5E2YqyuuWEcAxpRkPiowUn68ehiPqx4fDwJDXNDOFZZVQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1692003256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=hGG18YRpAzYxpKTnwH+uiIi5fZmUPp4aoRZn/mz3oxM=; b=5HpOfSb2ftYMCvkwTLtvn7F/YzsGinTG3ZYP0XQJlKsa1j1PTuBDstXsvq4yOsbSAtnzci 3iWS3gNDntyx1ECQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Wei Liu , Pu Wen , Qiuxu Zhuo , Sohil Mehta Subject: [patch V4 27/41] x86/cpu: Move __max_die_per_package to common.c References: <20230814085006.593997112@linutronix.de> MIME-Version: 1.0 Date: Mon, 14 Aug 2023 10:54:16 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In preparation of a complete replacement for the topology leaf 0xb/0x1f evaluation, move __max_die_per_package into the common code. Will be removed once everything is converted over. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley --- arch/x86/kernel/cpu/common.c | 3 +++ arch/x86/kernel/cpu/topology.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -75,6 +75,9 @@ u32 elf_hwcap2 __read_mostly; int smp_num_siblings =3D 1; EXPORT_SYMBOL(smp_num_siblings); =20 +unsigned int __max_die_per_package __read_mostly =3D 1; +EXPORT_SYMBOL(__max_die_per_package); + static struct ppin_info { int feature; int msr_ppin_ctl; --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -25,9 +25,6 @@ #define BITS_SHIFT_NEXT_LEVEL(eax) ((eax) & 0x1f) #define LEVEL_MAX_SIBLINGS(ebx) ((ebx) & 0xffff) =20 -unsigned int __max_die_per_package __read_mostly =3D 1; -EXPORT_SYMBOL(__max_die_per_package); - #ifdef CONFIG_SMP /* * Check if given CPUID extended topology "leaf" is implemented