Skip to content

Commit

Permalink
cpu instruction spin wait for arm32/64
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and davidtgoldblatt committed May 14, 2020
1 parent 27f29e4 commit 33372cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,16 @@ case "${host_cpu}" in
fi
fi
;;
aarch64|arm*)
HAVE_CPU_SPINWAIT=1
AC_CACHE_VAL([je_cv_yield],
[JE_COMPILABLE([yield instruction], [],
[[__asm__ volatile("yield"); return 0;]],
[je_cv_yield])])
if test "x${je_cv_yield}" = "xyes" ; then
CPU_SPINWAIT='__asm__ volatile("yield")'
fi
;;
*)
HAVE_CPU_SPINWAIT=0
;;
Expand Down

0 comments on commit 33372cb

Please sign in to comment.