diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-01-31 16:34:39 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-01-31 16:34:39 +0000 |
commit | cf3b8d958cd16ced7cdf5674406482efade3db29 (patch) | |
tree | cf739889c4f37ea96fd4de63fdcc98f2a603d7e9 /tools/libxl/libxl_utils.c | |
parent | 8137e3ea1a0ea66181680b9bc4f1865c0edb81b5 (diff) | |
download | xen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.gz xen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.bz2 xen-cf3b8d958cd16ced7cdf5674406482efade3db29.zip |
libxl: drop libxl_cpuarray -- topology was the only user.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.c')
-rw-r--r-- | tools/libxl/libxl_utils.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c index c92151abc1..cd819c808c 100644 --- a/tools/libxl/libxl_utils.c +++ b/tools/libxl/libxl_utils.c @@ -514,30 +514,6 @@ void libxl_cpumap_reset(libxl_cpumap *cpumap, int cpu) cpumap->map[cpu / 8] &= ~(1 << (cpu & 7)); } -int libxl_cpuarray_alloc(libxl_ctx *ctx, libxl_cpuarray *cpuarray) -{ - int max_cpus; - int i; - - max_cpus = libxl_get_max_cpus(ctx); - if (max_cpus == 0) - return ERROR_FAIL; - - cpuarray->array = calloc(max_cpus, sizeof(*cpuarray->array)); - if (!cpuarray->array) - return ERROR_NOMEM; - cpuarray->entries = max_cpus; - for (i = 0; i < max_cpus; i++) - cpuarray->array[i] = LIBXL_CPUARRAY_INVALID_ENTRY; - - return 0; -} - -void libxl_cpuarray_dispose(libxl_cpuarray *array) -{ - free(array->array); -} - int libxl_get_max_cpus(libxl_ctx *ctx) { return xc_get_max_cpus(ctx->xch); |