x86/cpu: Drop cpu_devs[] and $VENDOR_init_cpu() hooks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Apr 2019 14:51:25 +0000 (15:51 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Apr 2019 10:09:07 +0000 (11:09 +0100)
commit64933920c9b34129d8c868347da0ed396b50e3a8
tree8cc02a83bf7cbc26892cd8cc17bdf17ad491b82e
parent30e0bdf79828db975f0248cba933d563038f1e37
x86/cpu: Drop cpu_devs[] and $VENDOR_init_cpu() hooks

These helpers each fill in a single cpu_devs[] pointer, and since c/s
00b4f4d0f "x86/cpuid: Drop get_cpu_vendor() completely", this array is read
exactly once on boot.

Delete the hooks and cpu_devs[], and have early_cpu_detect() pick the
appropriate cpu_dev structure directly.

As early_cpu_init() is empty now other than a call to early_cpu_detect(), and
this isn't expected to change moving forwards, rename the latter and delete
the former.

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