aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/m4/odp_wfe.m4
blob: 678e6229bb5b07c36c6f6d180e2a9f66b392e10b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
#

##########################################################################
# Enable/disable WFE based lock implementations
##########################################################################
use_wfe_locks=no
AC_ARG_ENABLE([wfe-locks],
	      [AS_HELP_STRING([--enable-wfe-locks],
			      [enable WFE based lock implementations on aarch64]
			      [[default=disabled] (linux-generic)])],
	      [use_wfe_locks=$enableval])

if test x$use_wfe_locks = xyes; then
    AC_DEFINE([_ODP_WFE_LOCKS], [1],
    	      [Define to 1 to enable WFE based lock implementations on aarch64])
fi