aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/tm
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-08-13 11:34:45 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-08 22:23:49 +1000
commitb5a646a681f5d67ea5190a71d6e84a91efe63b7a (patch)
tree3f4ca673dbc553adf90f1eb30961dcaf66e4300a /tools/testing/selftests/powerpc/tm
parentselftests/powerpc: Don't use setaffinity in tm-tmspr (diff)
downloadlinux-dev-b5a646a681f5d67ea5190a71d6e84a91efe63b7a.tar.xz
linux-dev-b5a646a681f5d67ea5190a71d6e84a91efe63b7a.zip
selftests/powerpc: Run tm-tmspr test for longer
This test creates some threads, which write to TM SPRs, and then makes sure the registers maintain the correct values across context switches and contention with other threads. But currently the test finishes almost instantaneously, which reduces the chance of it hitting an interesting condition. So increase the number of loops, so it runs a bit longer, though still less than 2s on a Power8. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200813013445.686464-3-mpe@ellerman.id.au
Diffstat (limited to 'tools/testing/selftests/powerpc/tm')
-rw-r--r--tools/testing/selftests/powerpc/tm/tm-tmspr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/tm/tm-tmspr.c b/tools/testing/selftests/powerpc/tm/tm-tmspr.c
index 2ff329e2fca9..794d574db784 100644
--- a/tools/testing/selftests/powerpc/tm/tm-tmspr.c
+++ b/tools/testing/selftests/powerpc/tm/tm-tmspr.c
@@ -33,7 +33,7 @@
#include "utils.h"
#include "tm.h"
-int num_loops = 10000;
+int num_loops = 1000000;
int passed = 1;
void tfiar_tfhar(void *in)