x86/cpu/topology: Provide detect_extended_topology_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:55:39 +0000 (00:55 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Jun 2018 12:20:59 +0000 (14:20 +0200)
commit95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6
tree08b45e1ee3bfa2a8be91b6c0aa55521bbeaddb35
parent545401f4448a807b963ff17b575e0a393e68b523
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>
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/topology.c