Phil Yang 41e8227e20 service: optimize with C11 atomics
The num_mapped_cores is used as a statistics. Use c11 atomics with
RELAXED ordering for num_mapped_cores instead of rte_atomic ops which
enforce unnessary barriers on aarch64.

Replace execute_lock operations to spinlock_try_lock to avoid duplicate
code.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
2020-05-11 13:21:54 +02:00
..
2020-05-11 13:21:54 +02:00
2020-05-11 00:37:16 +02:00
2020-05-11 00:37:16 +02:00
2020-05-07 12:18:18 +02:00
2020-03-31 13:08:55 +02:00
2020-05-11 00:37:16 +02:00