]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: context_switch use private futexes with threads
authorNicholas Piggin <npiggin@gmail.com>
Sun, 4 Jun 2017 12:06:22 +0000 (22:06 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Jun 2017 06:55:01 +0000 (16:55 +1000)
commit7a3ab6cde9f2395eee5f85c344cac82085734666
treeeb984dbaed913df3437a0faec2e32023dc3564d1
parentfe48726c69be9fc2a74c187b1fccd505eae4c9bb
selftests/powerpc: context_switch use private futexes with threads

This reduces overhead of mutex locking and increases context switch
rate significantly (which helps to measure and profile the context
switch path).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/benchmarks/context_switch.c