aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/perfc.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/common/perfc.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/common/perfc.c')
-rw-r--r--xen/common/perfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c
index 81b41ba3d9..215e074438 100644
--- a/xen/common/perfc.c
+++ b/xen/common/perfc.c
@@ -211,14 +211,14 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc,
{
case TYPE_SINGLE:
case TYPE_S_SINGLE:
- for_each_cpu_mask ( cpu, perfc_cpumap )
+ for_each_cpu ( cpu, &perfc_cpumap )
perfc_vals[v++] = per_cpu(perfcounters, cpu)[j];
++j;
break;
case TYPE_ARRAY:
case TYPE_S_ARRAY:
memset(perfc_vals + v, 0, perfc_d[i].nr_vals * sizeof(*perfc_vals));
- for_each_cpu_mask ( cpu, perfc_cpumap )
+ for_each_cpu ( cpu, &perfc_cpumap )
{
perfc_t *counters = per_cpu(perfcounters, cpu) + j;
unsigned int k;