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)
commitb27ce776852078df9e14a223b375db6507096963
treeeb984dbaed913df3437a0faec2e32023dc3564d1
parentb802ab46ba12c617fd55b072f1906627e636947b
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