]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: context_switch: Fix pthread errors
authorCyril Bur <cyrilbur@gmail.com>
Tue, 4 Jul 2017 01:21:15 +0000 (11:21 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Oct 2017 08:41:56 +0000 (19:41 +1100)
commitff2c5a40de2962644b210e2cd9294c4be4359b7a
tree3804871858d88e3c99d3209a2cf59440549c9bde
parent7d94ca85ab8523fefde20033086b3a902540ee42
selftests/powerpc: context_switch: Fix pthread errors

Turns out pthreads returns an errno and doesn't set errno. This doesn't
play well with perror().

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