Borislav Petkov ccd135cdd9 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>
2018-08-15 17:37:27 +02:00
..
2018-07-22 11:51:30 -07:00
2018-07-28 12:32:28 -07:00
2018-08-03 10:38:21 -07:00
2018-07-04 14:12:53 -07:00
2018-06-15 18:10:01 -03:00