From 5f23a16bddb62e7895fee685c26d2ae3270c0627 Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Tue, 3 Sep 2019 16:14:55 -0400 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2189348 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Nicolas Benech GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/units/interface/atomic/atomic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/userspace/units/interface/atomic/atomic.c b/userspace/units/interface/atomic/atomic.c index 5ad0cd94c..4125c44ce 100644 --- a/userspace/units/interface/atomic/atomic.c +++ b/userspace/units/interface/atomic/atomic.c @@ -1456,7 +1456,7 @@ struct atomic_test_args xchg_not_atomic_arg = { .start_val = 1, .value = 1, .loop_count = 10000, - .repeat_count = 10000, /* for threaded test */ + .repeat_count = 5000, /* for threaded test */ }; struct atomic_test_args xchg_32_arg = { .op = op_cmpxchg, @@ -1464,7 +1464,7 @@ struct atomic_test_args xchg_32_arg = { .start_val = 1, .value = 1, .loop_count = 10000, - .repeat_count = 10000, /* for threaded test */ + .repeat_count = 5000, /* for threaded test */ }; struct atomic_test_args xchg_64_arg = { .op = op_cmpxchg, @@ -1472,7 +1472,7 @@ struct atomic_test_args xchg_64_arg = { .start_val = INT_MAX, .value = 1, .loop_count = 10000, - .repeat_count = 10000, /* for threaded test */ + .repeat_count = 5000, /* for threaded test */ }; struct atomic_test_args cmpxchg_not_atomic_arg = { .op = op_cmpxchg,