]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/selftests: Wait all threads to join
authorBreno Leitao <leitao@debian.org>
Tue, 31 Jul 2018 20:55:57 +0000 (17:55 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:21:58 +0000 (09:21 +0100)
commit3136e7a31323e7d82683a1ff83085b33457eaf55
tree79482b4e50a9c79267b3c7cbbacd2156428c6b10
parente7bce56063ac578e4f2ed362f2ad3e362dee0c77
powerpc/selftests: Wait all threads to join

[ Upstream commit 693b31b2fc1636f0aa7af53136d3b49f6ad9ff39 ]

Test tm-tmspr might exit before all threads stop executing, because it just
waits for the very last thread to join before proceeding/exiting.

This patch makes sure that all threads that were created will join before
proceeding/exiting.

This patch also guarantees that the amount of threads being created is equal
to thread_num.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/powerpc/tm/tm-tmspr.c