gpu: nvgpu: unit: atomic: decrease test time for xchg tests

The threaded xchg tests were running long and causing failures with the
QNX framework. This decreases the number of iterations for these tests.

JIRA NVGPU-3954

Change-Id: Ie4153b815ad81664ed3b4d4cb058c522cce3e609
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2189348
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Nicolas Benech <nbenech@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>
This commit is contained in:
Philip Elcan
2019-09-03 16:14:55 -04:00
committed by Alex Waterman
parent fa002fac86
commit 5f23a16bdd

View File

@@ -1456,7 +1456,7 @@ struct atomic_test_args xchg_not_atomic_arg = {
.start_val = 1, .start_val = 1,
.value = 1, .value = 1,
.loop_count = 10000, .loop_count = 10000,
.repeat_count = 10000, /* for threaded test */ .repeat_count = 5000, /* for threaded test */
}; };
struct atomic_test_args xchg_32_arg = { struct atomic_test_args xchg_32_arg = {
.op = op_cmpxchg, .op = op_cmpxchg,
@@ -1464,7 +1464,7 @@ struct atomic_test_args xchg_32_arg = {
.start_val = 1, .start_val = 1,
.value = 1, .value = 1,
.loop_count = 10000, .loop_count = 10000,
.repeat_count = 10000, /* for threaded test */ .repeat_count = 5000, /* for threaded test */
}; };
struct atomic_test_args xchg_64_arg = { struct atomic_test_args xchg_64_arg = {
.op = op_cmpxchg, .op = op_cmpxchg,
@@ -1472,7 +1472,7 @@ struct atomic_test_args xchg_64_arg = {
.start_val = INT_MAX, .start_val = INT_MAX,
.value = 1, .value = 1,
.loop_count = 10000, .loop_count = 10000,
.repeat_count = 10000, /* for threaded test */ .repeat_count = 5000, /* for threaded test */
}; };
struct atomic_test_args cmpxchg_not_atomic_arg = { struct atomic_test_args cmpxchg_not_atomic_arg = {
.op = op_cmpxchg, .op = op_cmpxchg,