From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost ([127.0.0.1] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1fQeAZ-0005Ri-9I for speck@linutronix.de; Wed, 06 Jun 2018 21:32:31 +0200 Message-ID: <20180606192807.752811736@linutronix.de> Date: Wed, 06 Jun 2018 21:27:24 +0200 From: Thomas Gleixner Subject: [patch V2 10/12] x86/cpu/intel: Evaluate smp_num_siblings early References: <20180606192714.754943543@linutronix.de> MIME-Version: 1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: Subject: [patch V2 10/12] x86/cpu/intel: Evaluate smp_num_siblings early From: Thomas Gleixner 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 --- arch/x86/kernel/cpu/intel.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -301,6 +301,13 @@ static void early_init_intel(struct cpui } check_mpx_erratum(c); + + /* + * Get the number of SMT siblings early from the extended topology + * leaf, if available + */ + if (detect_extended_topology_early(c) < 0 && IS_ENABLED(CONFIG_X86_32)) + detect_ht_early(c); } #ifdef CONFIG_X86_32