aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/smp.h
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2024-02-13 22:05:46 +0100
committerGravatar Thomas Gleixner <tglx@linutronix.de> 2024-02-15 22:07:42 +0100
commit58aa34abe9954cd5dfbf322fc612146c5f45e52b (patch)
treefee7e37c50af4b8f76d3ffc4bda31ca51ecd19e1 /arch/x86/include/asm/smp.h
parentx86/xen/smp_pv: Register fake APICs (diff)
downloadlinux-58aa34abe9954cd5dfbf322fc612146c5f45e52b.tar.gz
linux-58aa34abe9954cd5dfbf322fc612146c5f45e52b.tar.bz2
linux-58aa34abe9954cd5dfbf322fc612146c5f45e52b.zip
x86/cpu/topology: Confine topology information
Now that all external fiddling with num_processors and disabled_cpus is gone, move the last user prefill_possible_map() into the topology code too and remove the global visibility of these variables. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Michael Kelley <mhklinux@outlook.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Link: https://lore.kernel.org/r/20240213210251.994756960@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/smp.h')
-rw-r--r--arch/x86/include/asm/smp.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 4fab2ed454f3..f1510d6f4e84 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -9,7 +9,6 @@
#include <asm/thread_info.h>
extern int smp_num_siblings;
-extern unsigned int num_processors;
DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_map);
@@ -174,8 +173,6 @@ static inline struct cpumask *cpu_llc_shared_mask(int cpu)
}
#endif /* CONFIG_SMP */
-extern unsigned disabled_cpus;
-
#ifdef CONFIG_DEBUG_NMI_SELFTEST
extern void nmi_selftest(void);
#else