aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu-defs.h
diff options
context:
space:
mode:
authorAlexander van Heukelum <heukelum@fastmail.fm>2010-09-06 14:53:42 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-06 23:07:00 -0400
commitfe8e0c25cad28e8858ecfa5863333c70685a6811 (patch)
treed1abdb267151a1a9bca7dc48904b60025a24d8b8 /include/linux/percpu-defs.h
parent1813a68457bb45b378d5bbec615b167deff3bcfc (diff)
x86, 32-bit: Align percpu area and irq stacks to THREAD_SIZE
The irq stacks, located in the percpu-area, need to be THREAD_SIZE aligned. Add the infrastucture to align percpu variables to larger-than-pagesize amounts within the percpu area, and use it to specify the alignment for the irq stacks. Also align the percpu area itself to THREAD_SIZE. This should make irq stacks work with 8K THREAD_SIZE. Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm> Cc: Tejun Heo <tj@kernel.org> Cc: hch@lst.de LKML-Reference: <1283799222.15941.1393621887@webmail.messagingengine.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/percpu-defs.h')
-rw-r--r--include/linux/percpu-defs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index ce2dc655cd1d..ab20d119a85d 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -139,6 +139,18 @@
139 __aligned(PAGE_SIZE) 139 __aligned(PAGE_SIZE)
140 140
141/* 141/*
142 * Declaration/definition used for large per-CPU variables that must be
143 * aligned to something larger than the pagesize.
144 */
145#define DECLARE_PER_CPU_MULTIPAGE_ALIGNED(type, name, size) \
146 DECLARE_PER_CPU_SECTION(type, name, "..page_aligned") \
147 __aligned(size)
148
149#define DEFINE_PER_CPU_MULTIPAGE_ALIGNED(type, name, size) \
150 DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \
151 __aligned(size)
152
153/*
142 * Intermodule exports for per-CPU variables. sparse forgets about 154 * Intermodule exports for per-CPU variables. sparse forgets about
143 * address space across EXPORT_SYMBOL(), change EXPORT_SYMBOL() to 155 * address space across EXPORT_SYMBOL(), change EXPORT_SYMBOL() to
144 * noop if __CHECKER__. 156 * noop if __CHECKER__.