summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge2009-09-03 23:31:44 +0200
committerIngo Molnar2009-09-04 07:10:31 +0200
commit53f824520b6d84ca5b4a8fd71addc91dbf64357e (patch)
treefc62733de8040f13cf450b6cae967976da31827b /arch/x86/include/asm/processor.h
parentx86/i386: Make sure stack-protector segment base is cache aligned (diff)
downloadkernel-qcow2-linux-53f824520b6d84ca5b4a8fd71addc91dbf64357e.tar.gz
kernel-qcow2-linux-53f824520b6d84ca5b4a8fd71addc91dbf64357e.tar.xz
kernel-qcow2-linux-53f824520b6d84ca5b4a8fd71addc91dbf64357e.zip
x86/i386: Put aligned stack-canary in percpu shared_aligned section
Pack aligned things together into a special section to minimize padding holes. Suggested-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Tejun Heo <tj@kernel.org> LKML-Reference: <4AA035C0.9070202@goop.org> [ queued up in tip:x86/asm because it depends on this commit: x86/i386: Make sure stack-protector segment base is cache aligned ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index e597ecc8753c..ac7e79654f3a 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -413,7 +413,7 @@ struct stack_canary {
char __pad[20]; /* canary at %gs:20 */
unsigned long canary;
};
-DECLARE_PER_CPU(struct stack_canary, stack_canary) ____cacheline_aligned;
+DECLARE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
#endif
#endif /* X86_64 */