aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/percpu.h
Commit message (Collapse)AuthorAgeFilesLines
* xen: define __section() and friends and use them for section annotations.Tim Deegan2012-04-111-1/+1
| | | | | | | | | By itself this is just code-tidying, but it's also useful for the following patch, which will adjust __section() for clang compiles. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Tim Deegan <tim@xen.org>
* x86: optimize this_cpu()Keir Fraser2010-07-131-1/+1
| | | | | | | | | | Besides the .text space savings of over 2.5k on x86-64 (1.5k for x86-32) this removes a load (plus a lea on x86-64) from various frequently executed code paths, and finally provides a reason (other than legibility) to prefer this_cpu() over per_cpu() in all places where smp_processor_id() isn't being called anyway. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: Dynamically allocate percpu data area when a CPU comes online.Keir Fraser2010-05-181-4/+7
| | | | | | At the same time, the data area starts life zeroed. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Re-increase size of percpu areaKeir Fraser2009-09-151-1/+1
| | | | | | | Per-cpu vector code add a lot of percpu data. Together with perfc enabled, one page per cpu is not enough any more. Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
* Introduce and use a per-CPU read-mostly sub-sectionKeir Fraser2009-07-131-3/+3
| | | | | | | | | | | | | | | 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>
* x86: PERCPU_SHIFT can be reduced to 12 now compat_arg_xlat_area is notKeir Fraser2009-07-061-1/+1
| | | | | | directly a per-cpu object. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* 32-on-64: Clean up and unify compat_arg_xlat_area handling.Keir Fraser2008-06-121-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Pull the Linux percpu interface into Xen. Implemented forkaf24@firebug.cl.cam.ac.uk2006-04-211-0/+20
x86 and used it to eliminate the percpu_ctxt struct from arch/x86/domain.c. Signed-off-by: Keir Fraser <keir@xensource.com>