From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:11 +0000 (-0700) Subject: Remove Hostinfo_OSIsSMP X-Git-Tag: stable-10.2.0~467 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64ccb7fc149dc786503d0b0e1eab9d84ed65228f;p=thirdparty%2Fopen-vm-tools.git Remove Hostinfo_OSIsSMP --- diff --git a/open-vm-tools/lib/include/hostinfo.h b/open-vm-tools/lib/include/hostinfo.h index 0548e0d52..dbb87e3ee 100644 --- a/open-vm-tools/lib/include/hostinfo.h +++ b/open-vm-tools/lib/include/hostinfo.h @@ -86,8 +86,6 @@ const char *Hostinfo_OSVersionString(void); char *Hostinfo_GetOSName(void); char *Hostinfo_GetOSGuestString(void); -Bool Hostinfo_OSIsSMP(void); - #if defined(_WIN32) Bool Hostinfo_OSIsWinNT(void); Bool Hostinfo_OSIsWow64(void); diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index 88ad4fba4..a0cdefb5e 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -1295,46 +1295,6 @@ Hostinfo_NumCPUs(void) } -/* - *---------------------------------------------------------------------- - * - * Hostinfo_OSIsSMP -- - * - * Host OS SMP capability. - * - * Results: - * TRUE is host OS is SMP capable. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -Bool -Hostinfo_OSIsSMP(void) -{ - uint32 ncpu; - -#if defined(__APPLE__) - size_t ncpuSize = sizeof ncpu; - - if (sysctlbyname("hw.ncpu", &ncpu, &ncpuSize, NULL, 0) == -1) { - return FALSE; - } - -#else - ncpu = Hostinfo_NumCPUs(); - - if (ncpu == 0xFFFFFFFF) { - return FALSE; - } -#endif - - return ncpu > 1 ? TRUE : FALSE; -} - - /* *----------------------------------------------------------------------------- *