diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-04-13 09:38:54 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-04-13 09:38:54 +0100 |
commit | 645f5ea7cb3dcc23c00f9ed603055af25bc5257b (patch) | |
tree | 4e132619f627bb6462308d995b74c7c4e3db495f /tools/libxc | |
parent | 81f77532b58c0601b81d823ecef11172ff9b968f (diff) | |
download | xen-645f5ea7cb3dcc23c00f9ed603055af25bc5257b.tar.gz xen-645f5ea7cb3dcc23c00f9ed603055af25bc5257b.tar.bz2 xen-645f5ea7cb3dcc23c00f9ed603055af25bc5257b.zip |
Topology-info sysctl cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc')
-rw-r--r-- | tools/libxc/xc_pm.c | 20 | ||||
-rw-r--r-- | tools/libxc/xenctrl.h | 16 |
2 files changed, 0 insertions, 36 deletions
diff --git a/tools/libxc/xc_pm.c b/tools/libxc/xc_pm.c index 7e20231a33..e979ba12b3 100644 --- a/tools/libxc/xc_pm.c +++ b/tools/libxc/xc_pm.c @@ -326,26 +326,6 @@ int xc_get_cpufreq_avgfreq(int xc_handle, int cpuid, int *avg_freq) return ret; } -int xc_get_cputopo(int xc_handle, struct xc_get_cputopo *info) -{ - int rc; - DECLARE_SYSCTL; - - sysctl.cmd = XEN_SYSCTL_pm_op; - sysctl.u.pm_op.cmd = XEN_SYSCTL_pm_op_get_cputopo; - sysctl.u.pm_op.cpuid = 0; - set_xen_guest_handle( sysctl.u.pm_op.u.get_topo.cpu_to_core, - info->cpu_to_core ); - set_xen_guest_handle( sysctl.u.pm_op.u.get_topo.cpu_to_socket, - info->cpu_to_socket ); - sysctl.u.pm_op.u.get_topo.max_cpus = info->max_cpus; - - rc = do_sysctl(xc_handle, &sysctl); - info->nr_cpus = sysctl.u.pm_op.u.get_topo.nr_cpus; - - return rc; -} - /* value: 0 - disable sched_smt_power_savings 1 - enable sched_smt_power_savings */ diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index a12388db72..497e211a43 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -1303,22 +1303,6 @@ int xc_set_cpufreq_para(int xc_handle, int cpuid, int ctrl_type, int ctrl_value); int xc_get_cpufreq_avgfreq(int xc_handle, int cpuid, int *avg_freq); -struct xc_get_cputopo { - /* IN: maximum addressable entry in - * the caller-provided cpu_to_core/socket. - */ - uint32_t max_cpus; - uint32_t *cpu_to_core; - uint32_t *cpu_to_socket; - - /* OUT: number of cpus returned - * If OUT is greater than IN then the cpu_to_core/socket is truncated! - */ - uint32_t nr_cpus; -}; - -int xc_get_cputopo(int xc_handle, struct xc_get_cputopo *info); - int xc_set_sched_opt_smt(int xc_handle, uint32_t value); int xc_set_vcpu_migration_delay(int xc_handle, uint32_t value); int xc_get_vcpu_migration_delay(int xc_handle, uint32_t *value); |