Only yield under ARMv7 and above (#1176)
authorRosen Penev <rosenp@gmail.com>
Tue, 12 Nov 2019 21:56:53 +0000 (13:56 -0800)
committerThomas Goirand <zigo@debian.org>
Tue, 28 Dec 2021 07:45:18 +0000 (07:45 +0000)
Origin: upstream, https://github.com/facebook/folly/commit/62d8e6e0b91ebd6f878f3066cd9b6e5f3c18a97b.patch
Last-Update: 2021-11-24

Gbp-Pq: Name only-yied-under-armv7-and-above.patch

src/rocksdb/third-party/folly/folly/portability/Asm.h

index cca168586261213cefe73820e69d150c03cd8a30..9225f05e16d722e577376c0a90e37b5e53a5f09d 100644 (file)
@@ -19,7 +19,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");