* [PATCH] x86/cpu/topology: Drop redundant CONFIG_X86_LOCAL_APIC check
@ 2025-08-23 15:54 Chang S. Bae
0 siblings, 0 replies; only message in thread
From: Chang S. Bae @ 2025-08-23 15:54 UTC (permalink / raw)
To: linux-kernel; +Cc: x86, tglx, mingo, bp, dave.hansen, chang.seok.bae
topology.c is only built when CONFIG_X86_LOCAL_APIC=y, so the #ifdef
there is unnecessary. Remove it.
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
---
arch/x86/kernel/cpu/topology.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c
index e35ccdc84910..dcf05c64dd82 100644
--- a/arch/x86/kernel/cpu/topology.c
+++ b/arch/x86/kernel/cpu/topology.c
@@ -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
--
2.48.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-23 15:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-23 15:54 [PATCH] x86/cpu/topology: Drop redundant CONFIG_X86_LOCAL_APIC check Chang S. Bae
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®