x86/cpu/AMD: Evaluate smp_num_siblings early
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:57:38 +0000 (00:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:12:52 +0000 (18:12 +0200)
commit63f2c9b0d42f7afcdd698025885dd48bc73a8a5b
tree890fa8e7b22b5f91b9746a2935cf7475313d1307
parent35c67d5baad3e2ab745393cbfeb6c6cc9ac6a334
x86/cpu/AMD: Evaluate smp_num_siblings early

commit 1e1d7e25fd759eddf96d8ab39d0a90a1979b2d8c upstream

To support force disabling of SMT it's required to know the number of
thread siblings early. amd_get_topology() cannot be called before the APIC
driver is selected, so split out the part which initializes
smp_num_siblings and invoke it from amd_early_init().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/amd.c