x86/cpu/common: Provide detect_ht_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:53:57 +0000 (00:53 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Jun 2018 12:20:59 +0000 (14:20 +0200)
commit545401f4448a807b963ff17b575e0a393e68b523
tree94e6d8abf65a072eee51839813b1100e86b05df6
parent44ca36de56d1bf196dca2eb67cd753a46961ffe6
x86/cpu/common: Provide detect_ht_early()

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>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/cpu.h