summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/cpu.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-06-06 00:55:39 +0200
committerThomas Gleixner <tglx@linutronix.de>2018-06-21 14:20:59 +0200
commit95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6 (patch)
tree08b45e1ee3bfa2a8be91b6c0aa55521bbeaddb35 /arch/x86/kernel/cpu/cpu.h
parentx86/cpu/common: Provide detect_ht_early() (diff)
downloadlinux-95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6.tar.xz
linux-95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6.zip
x86/cpu/topology: Provide detect_extended_topology_early()
To support force disabling of SMT it's required to know the number of thread siblings early. detect_extended_topology() cannot be called before the APIC driver is selected, so split out the part which initializes smp_num_siblings. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/cpu.h')
-rw-r--r--arch/x86/kernel/cpu/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h
index 898da0b974e2..e59c0ea82a33 100644
--- a/arch/x86/kernel/cpu/cpu.h
+++ b/arch/x86/kernel/cpu/cpu.h
@@ -55,6 +55,7 @@ extern void init_intel_cacheinfo(struct cpuinfo_x86 *c);
extern void init_amd_cacheinfo(struct cpuinfo_x86 *c);
extern void detect_num_cpu_cores(struct cpuinfo_x86 *c);
+extern int detect_extended_topology_early(struct cpuinfo_x86 *c);
extern int detect_extended_topology(struct cpuinfo_x86 *c);
extern int detect_ht_early(struct cpuinfo_x86 *c);
extern void detect_ht(struct cpuinfo_x86 *c);