]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
x86/vendor: Renumber the X86_VENDOR_ constants
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jul 2018 12:40:36 +0000 (13:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Nov 2018 18:34:30 +0000 (18:34 +0000)
Make X86_VENDOR_UNKNOWN have the value 0 so a piece of zeroed memory can't get
confused with X86_VENDOR_INTEL.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/x86-vendors.h

index c53d0b9bafb21ae6722882a719c6d6487f1e8b5f..38a81c3c6c4bbc45e6702b874418bcbd61350703 100644 (file)
@@ -4,11 +4,11 @@
 /*
  * CPU vendor IDs
  */
-#define X86_VENDOR_INTEL 0
-#define X86_VENDOR_AMD 1
-#define X86_VENDOR_CENTAUR 2
-#define X86_VENDOR_SHANGHAI 3
-#define X86_VENDOR_NUM 4
-#define X86_VENDOR_UNKNOWN 0xff
+#define X86_VENDOR_UNKNOWN 0
+#define X86_VENDOR_INTEL 1
+#define X86_VENDOR_AMD 2
+#define X86_VENDOR_CENTAUR 3
+#define X86_VENDOR_SHANGHAI 4
+#define X86_VENDOR_NUM 5
 
 #endif /* __XEN_X86_VENDORS_H__ */