commit | ce989e33e6eb492c3314934d0dd49a536e453ef2 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Fri May 14 16:50:23 2021 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed May 26 10:56:55 2021 -0400 |
tree | ac4b2f9ebd922c637d043a16ef2662ecb1b77d2b | |
parent | 98fd9c3e65736e5f7a87bd8e7a63e312788b8fca [diff] |
pm: device_runtime: Fix atomic usage Protect critical sessions using the spinlock available. The atomic usage was not properly protecting the critical section and was possible to have a race condition between the usage check and state set. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>