]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/selftests: Use gettid() instead of getppid() for null_syscall
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Jun 2021 12:31:09 +0000 (12:31 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:10 +0000 (00:09 +1000)
commite2e3267d13da14a4eb90e8bd955ba4550e61c207
tree266b55355a2b7fa475f1843f8984ac1dde23c086
parent6e4995cd1d531662e388430eaf99ed4bbbffaefa
powerpc/selftests: Use gettid() instead of getppid() for null_syscall

gettid() is 10% lighter than getppid(), use it for null_syscall selftest.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0ad62673d3e063f848e7c99d719bb966efd433e8.1622809833.git.christophe.leroy@csgroup.eu
tools/testing/selftests/powerpc/benchmarks/null_syscall.c