x86/cpu/topology: Provide detect_extended_topology_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:55:39 +0000 (00:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:14:46 +0000 (18:14 +0200)
commit3b4f20ad388755d8b049b6b7387cbb847d142af6
tree9ee31233307a8d1d5ef0f1f83dd85e66c8909026
parent691997bff5ff7e69b63c30ef36a29afc4a861c4e
x86/cpu/topology: Provide detect_extended_topology_early()

commit 95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6 upstream

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>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/topology.c