]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
x86/cpuid: Drop get_cpu_vendor() completely
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jul 2018 12:53:21 +0000 (13:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Mar 2019 14:45:47 +0000 (14:45 +0000)
commit00b4f4d0fb75dc183b499e78d1abcb865dbc30d7
tree415315799c835cf26166e1d263cd667124a0f7d4
parente72309ffbe7c4e507649c74749f130cda691131c
x86/cpuid: Drop get_cpu_vendor() completely

get_cpu_vendor() tries to do a number of things, and ends up doing none of
them well.

For calculating the vendor itself, use x86_cpuid_lookup_vendor() which is
implemented in a far more efficient manner than looping over cpu_devs[].

For setting up this_cpu, set it up once on the BSP only, rather than
latest-takes-precident across the APs.  Such a system is probably not going to
boot, but this feels like a less dangerous course of action.  Adjust the
printed errors to be more clear in the mismatch case.

This removes the only user of cpu_dev->c_ident[], so drop that field as well.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/centaur.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/cpu.h
xen/arch/x86/cpu/intel.c
xen/arch/x86/cpu/shanghai.c
xen/arch/x86/cpuid.c
xen/include/asm-x86/processor.h