cpu instruction spin wait for arm32/64
This commit is contained in:
parent
27f29e424b
commit
33372cbd40
10
configure.ac
10
configure.ac
@ -416,6 +416,16 @@ case "${host_cpu}" in
|
|||||||
fi
|
fi
|
||||||
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
|
HAVE_CPU_SPINWAIT=0
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user