]> git.baikalelectronics.ru Git - kernel.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)
commit4b9ed9402516350d6461bb991451c0554a4108bb
treec9186b89f78db5e41b36d7dbaa03a2860d77ff56
parent12ae8a753c4ac87ad4c6ae361f785621ca426b21
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: 9d9f95a40bfc ("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