]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:11:02 +0000 (18:11 +0200)
commitf85769f1400f9ac8ea9b1ef1ab0fd94f63fb9033
treeafac1db13834d8375bb03f6d0797556d3534838b
parente486e3cbe16d76ef1aa6fde8a5f9c6d723c26009
x86/CPU/AMD: Move TOPOEXT reenablement before reading smp_num_siblings

commit 7ce2f0393ea2396142b7faf6ee9b1f3676d08a5f upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/amd.c