aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r--include/linux/percpu.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index f052d8184993..1581ff235c7e 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -9,26 +9,6 @@
9 9
10#include <asm/percpu.h> 10#include <asm/percpu.h>
11 11
12#define DEFINE_PER_CPU_SECTION(type, name, section) \
13 __attribute__((__section__(PER_CPU_BASE_SECTION section))) \
14 PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name
15
16#define DEFINE_PER_CPU(type, name) \
17 DEFINE_PER_CPU_SECTION(type, name, "")
18
19#define DEFINE_PER_CPU_SHARED_ALIGNED(type, name) \
20 DEFINE_PER_CPU_SECTION(type, name, PER_CPU_SHARED_ALIGNED_SECTION) \
21 ____cacheline_aligned_in_smp
22
23#define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \
24 DEFINE_PER_CPU_SECTION(type, name, ".page_aligned")
25
26#define DEFINE_PER_CPU_FIRST(type, name) \
27 DEFINE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION)
28
29#define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(per_cpu__##var)
30#define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(per_cpu__##var)
31
32/* enough to cover all DEFINE_PER_CPUs in modules */ 12/* enough to cover all DEFINE_PER_CPUs in modules */
33#ifdef CONFIG_MODULES 13#ifdef CONFIG_MODULES
34#define PERCPU_MODULE_RESERVE (8 << 10) 14#define PERCPU_MODULE_RESERVE (8 << 10)