From nobody Fri Sep 12 03:18:51 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 30BF2C0015E for ; Wed, 9 Aug 2023 19:14:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbjHITOU (ORCPT ); Wed, 9 Aug 2023 15:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbjHITNi (ORCPT ); Wed, 9 Aug 2023 15:13:38 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9BB30F0; Wed, 9 Aug 2023 12:12:54 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608348; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nZ1fz7afZbS9ZifqQ0DfNP5YpS9PvP+lGgUyibxBptk=; b=ra9kBmT0eRtIKiJ1dswIbS0ZnFl9n6nrGJcjezaa6upsDTu5SmlncDc90s+03g6+9P7+lA G6ekMJ0snPJMFQamP71fdB527wGud7j0fEmLyp+Xi2Zj+Zso2D1tUCICoSwIhKXtw4LsK9 x9EICIfPbI+/35az9shdgG66ikHUNaW6z1MmxxhQQUCPUHLRH87XKg/ovcciq5LrnGCIO5 2iYW5Qaj4Kpb3E6Rf+su9kwCNa32+0EsQUy5p1r8GbxXuKPZQubkrHXGcHwakaG5KUxiCm LhUZt3QMm/WvD5jfEprPg/5rbO85rK9gPjBGd1UB61KIL6gMYYYSrd2hGP7svA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608348; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nZ1fz7afZbS9ZifqQ0DfNP5YpS9PvP+lGgUyibxBptk=; b=iDjXstr9cVxbGiJPk8oTTXuJSD5ui16Y3InniYxqb86X/9p4eBWLxSe+aFhO56mQ2brPuG k4ggdLCJz90AuACg== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic: Remove unused max_physical_apicid Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160834775.27769.8839904065386107662.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: b3bc5dd99462218602145581a1907c4143e9d015 Gitweb: https://git.kernel.org/tip/b3bc5dd99462218602145581a1907c414= 3e9d015 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:43 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:17 -07:00 x86/apic: Remove unused max_physical_apicid max_physical_apicid is assigned but never read. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/kernel/apic/apic.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index ee64f8f..d6b5059 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -74,11 +74,6 @@ EXPORT_SYMBOL_GPL(boot_cpu_physical_apicid); u8 boot_cpu_apic_version __ro_after_init; =20 /* - * The highest APIC ID seen during enumeration. - */ -static unsigned int max_physical_apicid; - -/* * Bitmask of physically existing CPUs: */ physid_mask_t phys_cpu_present_map; @@ -2541,9 +2536,6 @@ int generic_processor_info(int apicid, int version) boot_cpu_apic_version, cpu, version); } =20 - if (apicid > max_physical_apicid) - max_physical_apicid =3D apicid; - #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) early_per_cpu(x86_cpu_to_apicid, cpu) =3D apicid; #endif