diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:23:05 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:23:05 +0200 |
commit | 478be8dd49c707d994c0831a675aaceae6eb3e4d (patch) | |
tree | e3c2ad0dbb910c58fce5f7600a512135b33f0f73 /xen/common/domctl.c | |
parent | fabfdefe2a125587b2cdfe3466a25f1456fbf8bc (diff) | |
download | xen-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/common/domctl.c')
-rw-r--r-- | xen/common/domctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 2fab24b63b..685901a4d7 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -171,7 +171,7 @@ static unsigned int default_vcpu0_location(cpumask_t *online) * If we're on a HT system, we only auto-allocate to a non-primary HT. We * favour high numbered CPUs in the event of a tie. */ - cpumask_copy(&cpu_exclude_map, &per_cpu(cpu_sibling_map, 0)); + cpumask_copy(&cpu_exclude_map, per_cpu(cpu_sibling_mask, 0)); cpu = cpumask_first(&cpu_exclude_map); if ( cpumask_weight(&cpu_exclude_map) > 1 ) cpu = cpumask_next(cpu, &cpu_exclude_map); @@ -179,11 +179,11 @@ static unsigned int default_vcpu0_location(cpumask_t *online) { if ( cpumask_test_cpu(i, &cpu_exclude_map) ) continue; - if ( (i == cpumask_first(&per_cpu(cpu_sibling_map, i))) && - (cpumask_weight(&per_cpu(cpu_sibling_map, i)) > 1) ) + if ( (i == cpumask_first(per_cpu(cpu_sibling_mask, i))) && + (cpumask_weight(per_cpu(cpu_sibling_mask, i)) > 1) ) continue; cpumask_or(&cpu_exclude_map, &cpu_exclude_map, - &per_cpu(cpu_sibling_map, i)); + per_cpu(cpu_sibling_mask, i)); if ( !cnt || cnt[i] <= cnt[cpu] ) cpu = i; } |