diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/percpu-defs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 3058cf9dd3d4..0761491b3eec 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h | |||
| @@ -77,11 +77,13 @@ | |||
| 77 | /* | 77 | /* |
| 78 | * Declaration/definition used for per-CPU variables that must be page aligned. | 78 | * Declaration/definition used for per-CPU variables that must be page aligned. |
| 79 | */ | 79 | */ |
| 80 | #define DECLARE_PER_CPU_PAGE_ALIGNED(type, name) \ | 80 | #define DECLARE_PER_CPU_PAGE_ALIGNED(type, name) \ |
| 81 | DECLARE_PER_CPU_SECTION(type, name, ".page_aligned") | 81 | DECLARE_PER_CPU_SECTION(type, name, ".page_aligned") \ |
| 82 | __aligned(PAGE_SIZE) | ||
| 82 | 83 | ||
| 83 | #define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \ | 84 | #define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \ |
| 84 | DEFINE_PER_CPU_SECTION(type, name, ".page_aligned") | 85 | DEFINE_PER_CPU_SECTION(type, name, ".page_aligned") \ |
| 86 | __aligned(PAGE_SIZE) | ||
| 85 | 87 | ||
| 86 | /* | 88 | /* |
| 87 | * Intermodule exports for per-CPU variables. | 89 | * Intermodule exports for per-CPU variables. |
