Skip to content

Commit 4ee471f

Browse files
author
Vasily Gorbik
committed
s390/linkage: increase asm symbols alignment to 16
Both clang and gcc (for -march=z13 and later) align functions to 16 bytes at -O2 to benefit branch prediction. Make asm symbols alignment consistent with that. This also benefits potential ftrace code patching, which is currently able to patch 8 aligned bytes at once. With defconfig this currently increases .text size by 4104 bytes. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent b55e692 commit 4ee471f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/include/asm/linkage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <asm/asm-const.h>
66
#include <linux/stringify.h>
77

8-
#define __ALIGN .align 4, 0x07
8+
#define __ALIGN .align 16, 0x07
99
#define __ALIGN_STR __stringify(__ALIGN)
1010

1111
/*

0 commit comments

Comments
 (0)