aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/common.c3
-rw-r--r--include/linux/percpu-defs.h8
2 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index f1961c07af9a..12493c5485e5 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1008,8 +1008,7 @@ static const unsigned int exception_stack_sizes[N_EXCEPTION_STACKS] = {
1008}; 1008};
1009 1009
1010static DEFINE_PER_CPU_PAGE_ALIGNED(char, exception_stacks 1010static DEFINE_PER_CPU_PAGE_ALIGNED(char, exception_stacks
1011 [(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ + DEBUG_STKSZ]) 1011 [(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ + DEBUG_STKSZ]);
1012 __aligned(PAGE_SIZE);
1013 1012
1014/* May not be marked __init: used by software suspend */ 1013/* May not be marked __init: used by software suspend */
1015void syscall_init(void) 1014void syscall_init(void)
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index 68438e18fff4..afd5f8b7061f 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -69,11 +69,13 @@
69/* 69/*
70 * Declaration/definition used for per-CPU variables that must be page aligned. 70 * Declaration/definition used for per-CPU variables that must be page aligned.
71 */ 71 */
72#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name) \ 72#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name) \
73 DECLARE_PER_CPU_SECTION(type, name, ".page_aligned") 73 DECLARE_PER_CPU_SECTION(type, name, ".page_aligned") \
74 __aligned(PAGE_SIZE)
74 75
75#define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \ 76#define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \
76 DEFINE_PER_CPU_SECTION(type, name, ".page_aligned") 77 DEFINE_PER_CPU_SECTION(type, name, ".page_aligned") \
78 __aligned(PAGE_SIZE)
77 79
78/* 80/*
79 * Intermodule exports for per-CPU variables. 81 * Intermodule exports for per-CPU variables.