]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Don't use setaffinity in tm-tmspr
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 13 Aug 2020 01:34:44 +0000 (11:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2020 12:23:46 +0000 (22:23 +1000)
commit8a594b7c8533607abcd87ddf33af18462061d17a
tree15523d1d53f126850e56e2ab4fbcafdda1d806c1
parent71352e7ba29d23c883c82b5f1d2e1df8243ab327
selftests/powerpc: Don't use setaffinity in tm-tmspr

This test tries to set affinity to CPUs that don't exist, especially
if the set of online CPUs doesn't start at 0.

But there's no real reason for it to use setaffinity in the first
place, it's just trying to create lots of threads to cause contention.
So drop the setaffinity entirely.

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