From: Thomas Gleixner Date: Tue, 8 Aug 2023 22:03:43 +0000 (-0700) Subject: x86/apic: Remove unused max_physical_apicid X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b3bc5dd99462218602145581a1907c4143e9d015;p=linux.git 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) --- diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index ee64f8f4e0e9..d6b505942c7f 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -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