aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_config_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r--platform/linux-generic/include/odp_config_internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h
index 872d6f6d5..d3d09abf4 100644
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@ -179,6 +179,16 @@ extern "C" {
*/
#define CONFIG_IPSEC_MAX_NUM_SA 4000
+/*
+ * Use 128-bit atomics for timer implementation (if available)
+ *
+ * On some platforms 128-bit atomic operations may be available, but the
+ * implementation of used 128-bit GCC built-in functions (e.g.
+ * __atomic_compare_exchange_n) utilizes expensive locking. Set to zero to use
+ * ODP lock based implementation instead.
+ */
+#define CONFIG_TIMER_128BIT_ATOMICS 1
+
#ifdef __cplusplus
}
#endif