aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/sysctl.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-21 09:23:05 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-21 09:23:05 +0200
commit478be8dd49c707d994c0831a675aaceae6eb3e4d (patch)
treee3c2ad0dbb910c58fce5f7600a512135b33f0f73 /xen/arch/x86/sysctl.c
parentfabfdefe2a125587b2cdfe3466a25f1456fbf8bc (diff)
downloadxen-478be8dd49c707d994c0831a675aaceae6eb3e4d.tar.gz
xen-478be8dd49c707d994c0831a675aaceae6eb3e4d.tar.bz2
xen-478be8dd49c707d994c0831a675aaceae6eb3e4d.zip
allocate CPU sibling and core maps dynamically
... thus reducing the per-CPU data area size back to one page even when building for large NR_CPUS. At once eliminate the old __cpu{mask,list}_scnprintf() helpers. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/sysctl.c')
-rw-r--r--xen/arch/x86/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c
index cd2f13cf09..723d623ca5 100644
--- a/xen/arch/x86/sysctl.c
+++ b/xen/arch/x86/sysctl.c
@@ -76,9 +76,9 @@ long arch_do_sysctl(
memset(pi, 0, sizeof(*pi));
pi->threads_per_core =
- cpus_weight(per_cpu(cpu_sibling_map, 0));
+ cpumask_weight(per_cpu(cpu_sibling_mask, 0));
pi->cores_per_socket =
- cpus_weight(per_cpu(cpu_core_map, 0)) / pi->threads_per_core;
+ cpumask_weight(per_cpu(cpu_core_mask, 0)) / pi->threads_per_core;
pi->nr_cpus = num_online_cpus();
pi->nr_nodes = num_online_nodes();
pi->max_node_id = MAX_NUMNODES-1;