x86/cpu: Renumber X86_VENDOR_* to form a bitmap
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Apr 2019 18:39:08 +0000 (19:39 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Apr 2019 10:09:08 +0000 (11:09 +0100)
commit0cd074144cbb32de53e98eaad7d0ecd9259f219b
tree178514b060a36cfa421dff2cbb144403b051f77c
parentf2f8c67ed9e5ec2c61c8d70653cc35d5427efe82
x86/cpu: Renumber X86_VENDOR_* to form a bitmap

CPUs from different vendors sometimes share characteristics.  All users of
X86_VENDOR_* are now direct equal/not-equal comparisons.  By expressing the
X86_VENDOR_* constants in a bitmap fashon, we can more concicely and
efficiently test whether a vendor is one of a group.

Update all parts of the code which can already benefit from this improvement.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/arch/x86/acpi/suspend.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/x86-vendors.h