]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Mon, 26 Jul 2010 18:05:52 +0000 (11:05 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:05:52 +0000 (11:05 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/hostinfo.h
open-vm-tools/lib/misc/hostinfoPosix.c

index 990bc5ba8003adc9d0c0f0f97c965c1eec20cfb2..c4b8a1877f60772f0f2d380e998eda7c9fbf9d70 100644 (file)
@@ -47,11 +47,6 @@ extern Bool Hostinfo_GetMemoryInfoInPages(unsigned int *minSize,
 extern Bool Hostinfo_GetSwapInfoInPages(unsigned int *totalSwap,
                                         unsigned int *freeSwap);
 #endif
-#ifdef VMX86_SERVER
-extern Bool Hostinfo_GetCOSMemoryInfoInPages(unsigned int *minSize,
-                                             unsigned int *maxSize,
-                                             unsigned int *currentSize);
-#endif
 extern Bool Hostinfo_GetRatedCpuMhz(int32 cpuNumber,
                                     uint32 *mHz);
 extern char *Hostinfo_GetCpuDescription(uint32 cpuNumber);
index 3181327618f6d5ea6b67ed9e856aabf5513e9793..5335dc934f2c5afb2b01abbc5866c1a4a9e16c54 100644 (file)
@@ -3113,7 +3113,7 @@ HostinfoSysinfo(uint64 *totalRam,  // OUT: Total RAM in bytes
  * HostinfoGetLinuxMemoryInfoInPages --
  *
  *      Obtain the minimum memory to be maintained, total memory available,
- *      and free memory available on the host (Linux or COS) in pages.
+ *      and free memory available on the host (Linux) in pages.
  *
  * Results:
  *      TRUE on success: '*minSize', '*maxSize' and '*currentSize' are set
@@ -3183,7 +3183,7 @@ HostinfoGetLinuxMemoryInfoInPages(unsigned int *minSize,      // OUT:
  *
  * HostinfoGetSwapInfoInPages --
  *
- *      Obtain the total swap and free swap on the host (Linux or COS) in
+ *      Obtain the total swap and free swap on the host (Linux) in
  *      pages.
  *
  * Results:
@@ -3311,39 +3311,6 @@ Hostinfo_GetMemoryInfoInPages(unsigned int *minSize,      // OUT:
 }
 
 
-#ifdef VMX86_SERVER
-/*
- *-----------------------------------------------------------------------------
- *
- * Hostinfo_GetCOSMemoryInfoInPages --
- *
- *      Obtain the minimum memory to be maintained, total memory available, and
- *      free memory available on the COS in pages.
- *
- * Results:
- *      TRUE on success: '*minSize', '*maxSize' and '*currentSize' are set
- *      FALSE on failure
- *
- * Side effects:
- *      None
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-Hostinfo_GetCOSMemoryInfoInPages(unsigned int *minSize,      // OUT:
-                                 unsigned int *maxSize,      // OUT:
-                                 unsigned int *currentSize)  // OUT:
-{
-   if (HostType_OSIsPureVMK()) {
-      return FALSE;
-   } else {
-      return HostinfoGetLinuxMemoryInfoInPages(minSize, maxSize, currentSize);
-   }
-}
-#endif
-
-
 /*
  *-----------------------------------------------------------------------------
  *