From: Oliver Kurth Date: Tue, 27 Aug 2019 19:55:38 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.1.0~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=822f28b4d683c87b3fde67a36b0a165fac26e68e;p=thirdparty%2Fopen-vm-tools.git Common header file change 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 36a96b6ce..7f40a1036 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -2207,30 +2207,6 @@ CPUID_RequiresFence(CpuidVendor vendor, // IN } -/* - * The following low-level functions compute the number of - * cores per cpu. They should be used cautiously because - * they do not necessarily work on all types of CPUs. - * High-level functions that are correct for all CPUs are - * available elsewhere: see lib/cpuidInfo/cpuidInfo.c. - */ - -static INLINE uint32 -CPUID_IntelCoresPerPackage(uint32 v) /* %eax from CPUID with %eax=4 and %ecx=0. */ -{ - // Note: This is not guaranteed to work on older Intel CPUs. - return 1 + CPUID_GET(4, EAX, LEAF4_CORE_COUNT, v); -} - - -static INLINE uint32 -CPUID_AMDCoresPerPackage(uint32 v) /* %ecx from CPUID with %eax=0x80000008. */ -{ - // Note: This is not guaranteed to work on older AMD CPUs. - return 1 + CPUID_GET(0x80000008, ECX, LEAF88_CORE_COUNT, v); -} - - /* * Hypervisor CPUID space is 0x400000XX. */