power: fix thread-safety environment modification
authorMarcin Hajkowski <marcinx.hajkowski@intel.com>
Fri, 5 Apr 2019 14:35:35 +0000 (16:35 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 20:44:48 +0000 (22:44 +0200)
commit92433e347326c4d438c69093bbfa6212b8b59d60
treeb2800e3d82e384ede50f7261919844380e4f390b
parent236e164b22c8205516f054b2a478aa63c736cb9c
power: fix thread-safety environment modification

Due to lack of thread safety in exisiting solution
use spinlock mechanism for atomic
modification of power environment related data.

Fixes: 445c6528b5 ("power: common interface for guest and host")
Cc: stable@dpdk.org
Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
doc/guides/rel_notes/release_19_05.rst
lib/librte_power/rte_power.c
lib/librte_power/rte_power.h