diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-15 13:15:50 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-15 13:15:50 +0100 |
commit | 2e08ff6c7c17091f5c31c36792073cfab9298945 (patch) | |
tree | 2ed298b5b89ce0416172f39ef7f21064a3e20ef6 /xen/common/perfc.c | |
parent | dad74b0f9e62824dc1b902a0352a4a5f966472ac (diff) | |
download | xen-2e08ff6c7c17091f5c31c36792073cfab9298945.tar.gz xen-2e08ff6c7c17091f5c31c36792073cfab9298945.tar.bz2 xen-2e08ff6c7c17091f5c31c36792073cfab9298945.zip |
Rename for_each_cpu() to for_each_possible_cpu()
... to be more precise in naming, and also to match Linux.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/perfc.c')
-rw-r--r-- | xen/common/perfc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c index fe0958b30c..5e1e196a5f 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -136,13 +136,13 @@ void perfc_reset(unsigned char key) switch ( perfc_info[i].type ) { case TYPE_SINGLE: - for_each_cpu ( cpu ) + for_each_possible_cpu ( cpu ) per_cpu(perfcounters, cpu)[j] = 0; case TYPE_S_SINGLE: ++j; break; case TYPE_ARRAY: - for_each_cpu ( cpu ) + for_each_possible_cpu ( cpu ) memset(per_cpu(perfcounters, cpu) + j, 0, perfc_info[i].nr_elements * sizeof(perfc_t)); case TYPE_S_ARRAY: @@ -205,14 +205,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 ( cpu ) + for_each_possible_cpu ( cpu ) 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 ( cpu ) + for_each_possible_cpu ( cpu ) { perfc_t *counters = per_cpu(perfcounters, cpu) + j; unsigned int k; |