x86/cpu/common: Provide detect_ht_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:53:57 +0000 (00:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:14:46 +0000 (18:14 +0200)
commit691997bff5ff7e69b63c30ef36a29afc4a861c4e
treeff39fe1f82055a06cb082653bcd124a432faaf4e
parenta6d2fa5dd70ad5caf47afce59ec468e176d026d0
x86/cpu/common: Provide detect_ht_early()

commit 545401f4448a807b963ff17b575e0a393e68b523 upstream

To support force disabling of SMT it's required to know the number of
thread siblings early. detect_ht() 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>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/cpu.h