diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:32:41 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:32:41 +0100 |
commit | cfbf17ffbb03e8c8501cae1bbba5459450b3447c (patch) | |
tree | cf2e5b34ce9149243688329505ecea8e68c7eb1f /xen/common/kexec.c | |
parent | 749182393c49818b03172986aa2ba6afe3615c5d (diff) | |
download | xen-cfbf17ffbb03e8c8501cae1bbba5459450b3447c.tar.gz xen-cfbf17ffbb03e8c8501cae1bbba5459450b3447c.tar.bz2 xen-cfbf17ffbb03e8c8501cae1bbba5459450b3447c.zip |
Introduce and use a per-CPU read-mostly sub-section
Since mixing data that only gets setup once and then (perhaps
frequently) gets read by remote CPUs with data that the local CPU may
modify (again, perhaps frequently) still causes undesirable cache
protocol related bus traffic, separate the former class of objects
from the latter.
These objects converted here are just picked based on their write-once
(or write-very-rarely) properties; perhaps some more adjustments may
be desirable subsequently. The primary users of the new sub-section
will result from the next patch.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/kexec.c')
-rw-r--r-- | xen/common/kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/kexec.c b/xen/common/kexec.c index baa4a657e9..bb9fdf90a7 100644 --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -27,7 +27,7 @@ #include <compat/kexec.h> #endif -static DEFINE_PER_CPU(void *, crash_notes); +static DEFINE_PER_CPU_READ_MOSTLY(void *, crash_notes); static Elf_Note *xen_crash_note; |