]> git.baikalelectronics.ru Git - kernel.git/commit
selftest/powerpc: Add test for sigreturn in transaction
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Mon, 22 Aug 2016 16:53:02 +0000 (18:53 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:10:14 +0000 (15:10 +1100)
commitcc49a3ece708ab97f5ac7d135e834615eca0e267
treec431632c39faf803dd98ee339492d501dd596c9f
parent3fe95ddde8db43225eb4eb809a07a58da40624f8
selftest/powerpc: Add test for sigreturn in transaction

Ensure that kernel is throwing away the suspended transaction when
sigreturn() is called otherwise it if fails to restore the signal
frame's TM SPRS.

Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Add have_htm() check, minor formatting, add SPDX tag]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/tm-sigreturn.c [new file with mode: 0644]