From: Katy Feng Date: Mon, 24 Apr 2023 19:30:14 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.3.0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ea45d66f2358c1dcc8400a600f5e4ed8a419a1;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/x86cpuid.h b/open-vm-tools/lib/include/x86cpuid.h index 425507142..77911fbea 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -2150,6 +2150,16 @@ CPUID_MODEL_IS_ALDERLAKE(uint32 v) // IN: %eax from CPUID with %eax=1. CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_ALDERLAKE_9A); } +static INLINE Bool +CPUID_MODEL_IS_RAPTORLAKE(uint32 v) // IN: %eax from CPUID with %eax=1. +{ + /* Assumes the CPU manufacturer is Intel. */ + return CPUID_FAMILY_IS_P6(v) && + (CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_B7 || + CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_BF || + CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_BA); +} + static INLINE Bool CPUID_UARCH_IS_HASWELL(uint32 v) // IN: %eax from CPUID with %eax=1.