power: use C11 atomics for power state
authorPhil Yang <phil.yang@arm.com>
Thu, 24 Sep 2020 05:39:27 +0000 (13:39 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 25 Sep 2020 13:42:29 +0000 (15:42 +0200)
commite623c943eb45c33bce420c9cc7026635cdc0343e
tree4cb6e3701f925d8d1236bd048d34505df9f91574
parentb5bafde26cca534be643859169b45e8249a39787
power: use C11 atomics for power state

Since rte_atomicXX APIs are not allowed to be used, use C11 atomic
builtins for power in use state update.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: David Hunt <david.hunt@intel.com>
lib/librte_power/power_acpi_cpufreq.c
lib/librte_power/power_pstate_cpufreq.c