mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
nodeinfo: Remove libnuma include
Now that all libnuma functions used by libvirt are wrapped in virNuma we can remove the dependancy from nodeinfo.
This commit is contained in:
parent
223521bd33
commit
b0f8546203
@ -33,11 +33,6 @@
|
|||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include "conf/domain_conf.h"
|
#include "conf/domain_conf.h"
|
||||||
|
|
||||||
#if WITH_NUMACTL
|
|
||||||
# define NUMA_VERSION1_COMPATIBILITY 1
|
|
||||||
# include <numa.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <sys/sysctl.h>
|
# include <sys/sysctl.h>
|
||||||
@ -1534,7 +1529,6 @@ nodeGetFreeMemoryFake(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WITH_NUMACTL
|
|
||||||
static virBitmapPtr
|
static virBitmapPtr
|
||||||
virNodeGetSiblingsList(const char *dir, int cpu_id)
|
virNodeGetSiblingsList(const char *dir, int cpu_id)
|
||||||
{
|
{
|
||||||
@ -1715,23 +1709,3 @@ nodeGetFreeMemory(void)
|
|||||||
|
|
||||||
return freeMem;
|
return freeMem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#else
|
|
||||||
int nodeCapsInitNUMA(virCapsPtr caps) {
|
|
||||||
return nodeCapsInitNUMAFake(caps);
|
|
||||||
}
|
|
||||||
|
|
||||||
int nodeGetCellsFreeMemory(unsigned long long *freeMems,
|
|
||||||
int startCell,
|
|
||||||
int maxCells)
|
|
||||||
{
|
|
||||||
return nodeGetCellsFreeMemoryFake(freeMems,
|
|
||||||
startCell, maxCells);
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long long nodeGetFreeMemory(void)
|
|
||||||
{
|
|
||||||
return nodeGetFreeMemoryFake();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user