aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/tm/tm-syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/powerpc/tm/tm-syscall.c')
-rw-r--r--tools/testing/selftests/powerpc/tm/tm-syscall.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/testing/selftests/powerpc/tm/tm-syscall.c b/tools/testing/selftests/powerpc/tm/tm-syscall.c
index 60560cb20e38..454b965a2db3 100644
--- a/tools/testing/selftests/powerpc/tm/tm-syscall.c
+++ b/tools/testing/selftests/powerpc/tm/tm-syscall.c
@@ -27,21 +27,6 @@ unsigned retries = 0;
27#define TEST_DURATION 10 /* seconds */ 27#define TEST_DURATION 10 /* seconds */
28#define TM_RETRIES 100 28#define TM_RETRIES 100
29 29
30long failure_code(void)
31{
32 return __builtin_get_texasru() >> 24;
33}
34
35bool failure_is_persistent(void)
36{
37 return (failure_code() & TM_CAUSE_PERSISTENT) == TM_CAUSE_PERSISTENT;
38}
39
40bool failure_is_syscall(void)
41{
42 return (failure_code() & TM_CAUSE_SYSCALL) == TM_CAUSE_SYSCALL;
43}
44
45pid_t getppid_tm(bool suspend) 30pid_t getppid_tm(bool suspend)
46{ 31{
47 int i; 32 int i;