mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Add a threaded test for nvgpu_cmpxchg API. This test implements an atomic increment using cmpxchg. It uses the existing arithmetic threaded framework to use the cmpxchg_inc() function to verify 100 parallel threads increment the atomic the correct number of times. These are L1 tests since they have longer run times and are unlikely to regress. JIRA NVGPU-2251 Change-Id: I9c2b68052b3a1b6ef20adfa24e7d50746902f754 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2100748 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
40 KiB
40 KiB