mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
Add a threaded test to verify xchg operation. Also validate the non-atomic version will fail. There are 100 threads spawned that each do exchanges on the same atomic 1000 times. Each thread starts with a unique value. When the test completes, make sure the values are still unique. These are L1 tests since they have longer run times and are unlikely to regress. JIRA NVGPU-2251 Change-Id: I4741df500d712e60d92e5221182be02dbeaa14ef Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2081067 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>