|
|
@ -0,0 +1,11 @@ |
|
|
|
--- a/folly/portability/Asm.h
|
|
|
|
+++ b/folly/portability/Asm.h
|
|
|
|
@@ -38,7 +38,7 @@ inline void asm_volatile_pause() {
|
|
|
|
::_mm_pause(); |
|
|
|
#elif defined(__i386__) || FOLLY_X64 |
|
|
|
asm volatile("pause"); |
|
|
|
-#elif FOLLY_AARCH64 || defined(__arm__)
|
|
|
|
+#elif FOLLY_AARCH64 || (defined(__arm__) && !(__ARM_ARCH < 7))
|
|
|
|
asm volatile("yield"); |
|
|
|
#elif FOLLY_PPC64 |
|
|
|
asm volatile("or 27,27,27"); |