]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Fix TM tests when CPU 0 is offline
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 13 Aug 2020 01:34:43 +0000 (11:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2020 12:23:42 +0000 (22:23 +1000)
commit71352e7ba29d23c883c82b5f1d2e1df8243ab327
tree620f668966ad6c1b4a75a918f22f8d509f62757b
parent7e63a2281f1c9d2e659c1732f72c5cc4ff19cd57
selftests/powerpc: Fix TM tests when CPU 0 is offline

Several of the TM tests fail spuriously if CPU 0 is offline, because
they blindly try to affinitise to CPU 0.

Fix them by picking any online CPU and using that instead.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200813013445.686464-1-mpe@ellerman.id.au
tools/testing/selftests/powerpc/tm/tm-poison.c
tools/testing/selftests/powerpc/tm/tm-trap.c
tools/testing/selftests/powerpc/tm/tm-unavailable.c