]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/apic: Remove unused max_physical_apicid
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:03:43 +0000 (15:03 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:17 +0000 (11:58 -0700)
max_physical_apicid is assigned but never read.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
arch/x86/kernel/apic/apic.c

index ee64f8f4e0e930c2d5ac38498626ff0334e72c42..d6b505942c7ff8f8a613368d848c1b2d5cfe9517 100644 (file)
@@ -73,11 +73,6 @@ EXPORT_SYMBOL_GPL(boot_cpu_physical_apicid);
 
 u8 boot_cpu_apic_version __ro_after_init;
 
-/*
- * The highest APIC ID seen during enumeration.
- */
-static unsigned int max_physical_apicid;
-
 /*
  * Bitmask of physically existing CPUs:
  */
@@ -2541,9 +2536,6 @@ int generic_processor_info(int apicid, int version)
                        boot_cpu_apic_version, cpu, version);
        }
 
-       if (apicid > max_physical_apicid)
-               max_physical_apicid = apicid;
-
 #if defined(CONFIG_SMP) || defined(CONFIG_X86_64)
        early_per_cpu(x86_cpu_to_apicid, cpu) = apicid;
 #endif