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/arch/x86/oprofile | |
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/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/op_model_p4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/oprofile/op_model_p4.c b/xen/arch/x86/oprofile/op_model_p4.c index bb6f3d70fc..fabff9aa0e 100644 --- a/xen/arch/x86/oprofile/op_model_p4.c +++ b/xen/arch/x86/oprofile/op_model_p4.c @@ -385,7 +385,7 @@ static unsigned int get_stagger(void) { #ifdef CONFIG_SMP int cpu = smp_processor_id(); - return (cpu != first_cpu(per_cpu(cpu_sibling_map, cpu))); + return (cpu != cpumask_first(per_cpu(cpu_sibling_mask, cpu))); #endif return 0; } |