Skip to contentSkip to conversation

x86/cpu/topology: Drop redundant CONFIG_X86_LOCAL_APIC check

PATCH New Chang S. Bae 1 participant 1 message Aug 23, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu/topology: Drop redundant CONFIG_X86_LOCAL_APIC check

topology.c is only built when CONFIG_X86_LOCAL_APIC=y, so the #ifdef there is unnecessary. Remove it.

---
 arch/x86/kernel/cpu/topology.c | 2 --
 1 file changed, 2 deletions(-)
arch/x86/kernel/cpu/topology.c +0 -2
index e35ccdc84910..dcf05c64dd82 100644
@@ -416,7 +416,6 @@ void topology_hotunplug_apic(unsigned int cpu)
 }
 #endif
 
-#ifdef CONFIG_X86_LOCAL_APIC
 static unsigned int max_possible_cpus __initdata = NR_CPUS;
 
 /**
@@ -569,4 +568,3 @@ static int __init setup_possible_cpus(char *str)
 	return 0;
 }
 early_param("possible_cpus", setup_possible_cpus);
-#endif
Signature · 1 line
2.48.1