> Directly reading the internal value of atomic_t externally does
> not meet the encapsulation requirements. A new function
> atomic_read is added to obtain the value of an atomic variable.
>
> Signed-off-by: Yuwen Chen <[email protected]>
> ---
> .../selftests/futex/functional/futex_requeue_pi.c | 12 ++++++------
> .../functional/futex_requeue_pi_signal_restart.c | 4 ++--
> tools/testing/selftests/futex/include/atomic.h | 12 ++++++++++++
> 3 files changed, 20 insertions(+), 8 deletions(-)
Reviewed-by: Licay <[email protected]>