Commit 62d8e6e0 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

Only yield under ARMv7 and above (#1176)

Summary:
Not supported under ARMv6 and below.
Pull Request resolved: https://github.com/facebook/folly/pull/1176

Reviewed By: yfeldblum

Differential Revision: D18145021

Pulled By: Orvid

fbshipit-source-id: 21796e225f650038479d1f5a858313dab0477e66
parent 72f73d40
...@@ -38,7 +38,7 @@ inline void asm_volatile_pause() { ...@@ -38,7 +38,7 @@ inline void asm_volatile_pause() {
::_mm_pause(); ::_mm_pause();
#elif defined(__i386__) || FOLLY_X64 #elif defined(__i386__) || FOLLY_X64
asm volatile("pause"); asm volatile("pause");
#elif FOLLY_AARCH64 || defined(__arm__) #elif FOLLY_AARCH64 || (defined(__arm__) && !(__ARM_ARCH < 7))
asm volatile("yield"); asm volatile("yield");
#elif FOLLY_PPC64 #elif FOLLY_PPC64
asm volatile("or 27,27,27"); asm volatile("or 27,27,27");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment