Skip to content

Commit

Permalink
Use pause instruction on ARM7 and ARM8
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed May 4, 2024
1 parent a3480e8 commit 4510f4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ static inline void pause() {
asm volatile("pause");
#elif defined(__aarch64__)
asm volatile("yield");
#elif defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_8A__)
asm volatile("yield");
#endif
}

Expand Down

0 comments on commit 4510f4a

Please sign in to comment.