]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu/AMD: Evaluate smp_num_siblings early
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:57:38 +0000 (00:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Jun 2018 12:21:00 +0000 (14:21 +0200)
commit920716f9a36cadee0005ef9ad1b964d4099f3397
treeba708b01907016278ad4a2800742c828d5759451
parent4da05b3076265b7843fc771c73ce6e018df1e3fd
x86/cpu/AMD: Evaluate smp_num_siblings early

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