]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - tools/testing/selftests/powerpc/tm/tm-syscall.c
selftests/powerpc: exec() with suspended transaction
[mirror_ubuntu-zesty-kernel.git] / tools / testing / selftests / powerpc / tm / tm-syscall.c
index 60560cb20e380701fcd58aa5d19f749e479c9eb6..454b965a2db34a14eed0acbbfabb34cea31a97bd 100644 (file)
@@ -27,21 +27,6 @@ unsigned retries = 0;
 #define TEST_DURATION 10 /* seconds */
 #define TM_RETRIES 100
 
-long failure_code(void)
-{
-       return __builtin_get_texasru() >> 24;
-}
-
-bool failure_is_persistent(void)
-{
-       return (failure_code() & TM_CAUSE_PERSISTENT) == TM_CAUSE_PERSISTENT;
-}
-
-bool failure_is_syscall(void)
-{
-       return (failure_code() & TM_CAUSE_SYSCALL) == TM_CAUSE_SYSCALL;
-}
-
 pid_t getppid_tm(bool suspend)
 {
        int i;