diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-05-16 14:35:55 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-05-24 08:11:39 +0300 |
commit | 8dde7d753a2572ec3e95a6994129bf698233bce7 (patch) | |
tree | e4220f578747e347f4dec8b0a85861ef83eb1572 /platform/linux-generic/odp_system_info.c | |
parent | ab5f34d9fec5fab78164bc32b3a10c345d1f3d7e (diff) |
linux-gen: timer: add config option to disable usage of 128-bit atomics
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. Add implementation
internal config define CONFIG_TIMER_128BIT_ATOMICS for disabling usage of
128-bit atomics in the timer implementation.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_system_info.c')
-rw-r--r-- | platform/linux-generic/odp_system_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index 5665a3ece..c7c025f08 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -612,5 +612,6 @@ void odp_sys_config_print(void) ODP_PRINT("CONFIG_BURST_SIZE: %i\n", CONFIG_BURST_SIZE); ODP_PRINT("CONFIG_POOL_MAX_NUM: %i\n", CONFIG_POOL_MAX_NUM); ODP_PRINT("CONFIG_POOL_CACHE_MAX_SIZE: %i\n", CONFIG_POOL_CACHE_MAX_SIZE); + ODP_PRINT("CONFIG_TIMER_128BIT_ATOMICS: %i\n", CONFIG_TIMER_128BIT_ATOMICS); ODP_PRINT("\n"); } |