Skip to content

Commit

Permalink
x86/apic: Remove unused max_physical_apicid
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Thomas Gleixner authored and Dave Hansen committed Aug 9, 2023
1 parent a6625b4 commit b3bc5dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b3bc5dd

Please sign in to comment.