]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/CPU/AMD: Move TOPOEXT reenablement before reading smp_num_siblings
authorBorislav Petkov <bp@suse.de>
Fri, 22 Jun 2018 09:34:11 +0000 (11:34 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jun 2018 12:52:13 +0000 (14:52 +0200)
commit7ce2f0393ea2396142b7faf6ee9b1f3676d08a5f
treeb1eaf2f06d1ab8c74f9d73df47fab8e444e75ffe
parent11e34e64e4103955fc4568750914c75d65ea87ee
x86/CPU/AMD: Move TOPOEXT reenablement before reading smp_num_siblings

The TOPOEXT reenablement is a workaround for broken BIOSen which didn't
enable the CPUID bit. amd_get_topology_early(), however, relies on
that bit being set so that it can read out the CPUID leaf and set
smp_num_siblings properly.

Move the reenablement up to early_init_amd(). While at it, simplify
amd_get_topology_early().

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/amd.c