Reapply "ANDROID: arm64: lse: fix LSE atomics with LTO"
This reverts commit 8e482856b5.
Change-Id: Ib355d368a3b322a08f649889ab6186f9642615da
This commit is contained in:
1 parent
468ab6b96d
commit
c40fb23251
1 file changed
+7
@@ -22,6 +22,13 @@
|
||||
|
||||
#else /* __ASSEMBLER__ */
|
||||
|
||||
#ifdef CONFIG_LTO_CLANG
|
||||
#define __LSE_PREAMBLE ".arch_extension lse\n"
|
||||
#else
|
||||
__asm__(".arch_extension lse");
|
||||
#define __LSE_PREAMBLE
|
||||
#endif
|
||||
|
||||
/* Move the ll/sc atomics out-of-line */
|
||||
#define __LL_SC_INLINE notrace
|
||||
#define __LL_SC_PREFIX(x) __ll_sc_##x
|
||||
|
||||
Reference in new issue
Block a user