aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/platform_hypercall.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-11-08 10:36:10 +0100
committerJan Beulich <jbeulich@suse.com>2011-11-08 10:36:10 +0100
commit22bdce1c04881c0e909817ee11f7cecd6c852d8c (patch)
tree445ece053822f839c700f30d0159b4b73da68465 /xen/arch/x86/platform_hypercall.c
parentfe9ff5a9d54cced306aefaba126340e0c596717e (diff)
downloadxen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.gz
xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.bz2
xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.zip
eliminate first_cpu() etc
This includes the conversion from for_each_cpu_mask() to for_each-cpu(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/arch/x86/platform_hypercall.c')
-rw-r--r--xen/arch/x86/platform_hypercall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c
index c1ad9ef636..79b5ec2ccc 100644
--- a/xen/arch/x86/platform_hypercall.c
+++ b/xen/arch/x86/platform_hypercall.c
@@ -366,7 +366,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op)
goto out;
guest_from_compat_handle(idletimes, op->u.getidletime.idletime);
- for_each_cpu_mask ( cpu, *cpumap )
+ for_each_cpu ( cpu, cpumap )
{
if ( idle_vcpu[cpu] == NULL )
cpumask_clear_cpu(cpu, cpumap);
@@ -460,7 +460,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op)
g_info->flags |= XEN_PCPU_FLAGS_ONLINE;
}
- g_info->max_present = last_cpu(cpu_present_map);
+ g_info->max_present = cpumask_last(&cpu_present_map);
put_cpu_maps();