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)
commitc0176429b7b07893a5c1fd38baff055c919ba9e3
tree620f668966ad6c1b4a75a918f22f8d509f62757b
parent10bf59d923c2766ec8d6f0243481c865c7db9979
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