]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/powerpc: Skip tm-unavailable if TM is not enabled
authorGustavo Romero <gromero@linux.vnet.ibm.com>
Mon, 5 Mar 2018 20:48:55 +0000 (15:48 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:10:15 +0000 (15:10 +1100)
commitb395e55b49ecd56ea28dc629f4ca4c6239fc07c3
treec9186b89f78db5e41b36d7dbaa03a2860d77ff56
parent58935176ad17976b7a7f6ea25c0ceb2ca4308a30
selftests/powerpc: Skip tm-unavailable if TM is not enabled

Some processor revisions do not support transactional memory, and
additionally kernel support can be disabled. In either case the
tm-unavailable test should be skipped, otherwise it will fail with
a SIGILL.

That commit also sets this selftest to be called through the test
harness as it's done for other TM selftests.

Finally, it avoids using "ping" as a thread name since it's
ambiguous and can be confusing when shown, for instance,
in a kernel backtrace log.

Fixes: 77fad8bfb1d2 ("selftests/powerpc: Check FP/VEC on exception in TM")
Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/tm-unavailable.c