diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-22 15:14:51 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-22 15:14:51 +0100 |
commit | 4fd0fc305b2dfad938accb766ac24a083eae135b (patch) | |
tree | 680f2337529c6931b0520aa8c30470388cffbd47 /tools/libxc/xc_pm.c | |
parent | f36c8d0c957ba7f971d992f104b9984547e8429b (diff) | |
download | xen-4fd0fc305b2dfad938accb766ac24a083eae135b.tar.gz xen-4fd0fc305b2dfad938accb766ac24a083eae135b.tar.bz2 xen-4fd0fc305b2dfad938accb766ac24a083eae135b.zip |
libxc: finalise transition to hypercall buffers.
Rename xc_set_xen_guest_handle to set_xen_guest_handle[0] and remove now
unused functions:
- xc_memalign
- lock_pages
- unlock_pages
- hcall_buf_prep
- hcall_buf_release
[0] sed -i -e 's/xc_set_xen_guest_handle/set_xen_guest_handle/g' \
tools/libxc/*.[ch] \
tools/python/xen/lowlevel/xc/xc.c \
tools/python/xen/lowlevel/acm/acm.c \
tools/libxc/ia64/xc_ia64_stubs.c \
tools/security/secpol_tool.c \
tools/misc/xenpm.c
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_pm.c')
-rw-r--r-- | tools/libxc/xc_pm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/libxc/xc_pm.c b/tools/libxc/xc_pm.c index 36e0a9fa08..fd88c38b1f 100644 --- a/tools/libxc/xc_pm.c +++ b/tools/libxc/xc_pm.c @@ -73,8 +73,8 @@ int xc_pm_get_pxstat(xc_interface *xch, int cpuid, struct xc_px_stat *pxpt) sysctl.u.get_pmstat.type = PMSTAT_get_pxstat; sysctl.u.get_pmstat.cpuid = cpuid; sysctl.u.get_pmstat.u.getpx.total = max_px; - xc_set_xen_guest_handle(sysctl.u.get_pmstat.u.getpx.trans_pt, trans); - xc_set_xen_guest_handle(sysctl.u.get_pmstat.u.getpx.pt, pt); + set_xen_guest_handle(sysctl.u.get_pmstat.u.getpx.trans_pt, trans); + set_xen_guest_handle(sysctl.u.get_pmstat.u.getpx.pt, pt); ret = xc_sysctl(xch, &sysctl); if ( ret ) @@ -146,8 +146,8 @@ int xc_pm_get_cxstat(xc_interface *xch, int cpuid, struct xc_cx_stat *cxpt) sysctl.cmd = XEN_SYSCTL_get_pmstat; sysctl.u.get_pmstat.type = PMSTAT_get_cxstat; sysctl.u.get_pmstat.cpuid = cpuid; - xc_set_xen_guest_handle(sysctl.u.get_pmstat.u.getcx.triggers, triggers); - xc_set_xen_guest_handle(sysctl.u.get_pmstat.u.getcx.residencies, residencies); + set_xen_guest_handle(sysctl.u.get_pmstat.u.getcx.triggers, triggers); + set_xen_guest_handle(sysctl.u.get_pmstat.u.getcx.residencies, residencies); if ( (ret = xc_sysctl(xch, &sysctl)) ) goto unlock_2; @@ -219,9 +219,9 @@ int xc_get_cpufreq_para(xc_interface *xch, int cpuid, if ( xc_hypercall_bounce_pre(xch, scaling_available_governors) ) goto unlock_3; - xc_set_xen_guest_handle(sys_para->affected_cpus, affected_cpus); - xc_set_xen_guest_handle(sys_para->scaling_available_frequencies, scaling_available_frequencies); - xc_set_xen_guest_handle(sys_para->scaling_available_governors, scaling_available_governors); + set_xen_guest_handle(sys_para->affected_cpus, affected_cpus); + set_xen_guest_handle(sys_para->scaling_available_frequencies, scaling_available_frequencies); + set_xen_guest_handle(sys_para->scaling_available_governors, scaling_available_governors); } sysctl.cmd = XEN_SYSCTL_pm_op; |