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/include/asm-x86/smp.h | |
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/include/asm-x86/smp.h')
-rw-r--r-- | xen/include/asm-x86/smp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h index 6d566d1a05..3bd3d6caeb 100644 --- a/xen/include/asm-x86/smp.h +++ b/xen/include/asm-x86/smp.h @@ -32,8 +32,8 @@ extern void smp_alloc_memory(void); extern int pic_mode; -extern cpumask_t cpu_sibling_map[]; -extern cpumask_t cpu_core_map[]; +DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); +DECLARE_PER_CPU(cpumask_t, cpu_core_map); void smp_send_nmi_allbutself(void); |