diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:45:31 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:45:31 +0100 |
commit | 716ffa3e1d7abb7570fa10e04fd05bc41c3734af (patch) | |
tree | dc2bc78d311a0d9354beea66a3e4a1d63c8f8c3b /xen/arch/x86/oprofile | |
parent | cfbf17ffbb03e8c8501cae1bbba5459450b3447c (diff) | |
download | xen-716ffa3e1d7abb7570fa10e04fd05bc41c3734af.tar.gz xen-716ffa3e1d7abb7570fa10e04fd05bc41c3734af.tar.bz2 xen-716ffa3e1d7abb7570fa10e04fd05bc41c3734af.zip |
Move cpu_{sibling,core}_map into per-CPU space
These cpu maps get read from all CPUs, so apart from addressing the
square(nr_cpus) growth of these objects, they also get moved into the
previously introduced read-mostly sub-section of the per-CPU section,
in order to not need to waste a full cacheline in order to align (and
properly pad) them, which would be undue overhead on systems with low
NR_CPUS.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
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 589fdab4bf..c3ea7a7074 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(cpu_sibling_map[cpu])); + return (cpu != first_cpu(per_cpu(cpu_sibling_map, cpu))); #endif return 0; } |