aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu-defs.h
diff options
context:
space:
mode:
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__.