-AS_IF([test "$host_cpu" = "armv7l"],[
- AM_CFLAGS="$AM_CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
-])
-
-# ARM-specific checks
-AS_CASE([$host_cpu], [arm*], [
- AC_MSG_CHECKING([for dmb instruction])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
- int main()
- {
- asm volatile("dmb":::"memory");
- return 0;
- }
- ]])
- ],[
- AC_MSG_RESULT([yes])
- AC_DEFINE([CONFIG_RCU_ARM_HAVE_DMB], [1])
- ],[
- AC_MSG_RESULT([no])
- ])
-])
-
-# Check if sys_futex() is available
-AC_MSG_CHECKING([for sys_futex()])
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
- #include <sys/syscall.h>
- #ifndef __NR_futex
- #error "futexes not available"
- #endif
- ]])
-],[
- AC_MSG_RESULT([yes])
- AC_DEFINE([CONFIG_RCU_HAVE_FUTEX], [1])
- compat_futex_test=0
-],[
- AC_MSG_RESULT([no])
- compat_futex_test=1
-])
-