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-04-16 18:16:18 +02:00
2020-04-16 18:30:58 +02:00
2020-04-16 18:16:46 +02:00
2020-02-14 11:59:01 +01:00
2020-04-24 19:29:02 +02:00
2020-05-05 23:42:13 +02:00
2020-03-17 14:53:48 +01:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:30:58 +02:00
2020-04-22 20:46:00 +02:00
2020-04-16 18:16:18 +02:00
2020-05-11 00:37:16 +02:00
2020-05-11 00:37:16 +02:00