aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/intel.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-06-05 19:00:55 -0400
committerThomas Gleixner <tglx@linutronix.de>2018-06-21 08:20:59 -0400
commit1910ad5624968f93be48e8e265513c54d66b897c (patch)
tree3228681209a8980e4948f9909201d76efeaf8889 /arch/x86/kernel/cpu/intel.c
parent95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6 (diff)
x86/cpu/intel: Evaluate smp_num_siblings early
Make use of the new early detection function to initialize smp_num_siblings on the boot cpu before the MP-Table or ACPI/MADT scan happens. That's required for force disabling SMT. 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/intel.c')
-rw-r--r--arch/x86/kernel/cpu/intel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index eb75564f2d25..6602941cfebf 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -301,6 +301,13 @@ static void early_init_intel(struct cpuinfo_x86 *c)
301 } 301 }
302 302
303 check_mpx_erratum(c); 303 check_mpx_erratum(c);
304
305 /*
306 * Get the number of SMT siblings early from the extended topology
307 * leaf, if available. Otherwise try the legacy SMT detection.
308 */
309 if (detect_extended_topology_early(c) < 0)
310 detect_ht_early(c);
304} 311}
305 312
306#ifdef CONFIG_X86_32 313#ifdef CONFIG_X86_32