selftests/powerpc: Import Anton's context_switch2 benchmark
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Dec 2015 09:44:09 +0000 (20:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Dec 2015 23:46:42 +0000 (10:46 +1100)
commit00b7ec5c9cf338902faea2e40801573a384e45be
tree1c2f5994e1d92ec156466f25cd97c2e6f7b790eb
parentd1301afd71bd38b1610b391e50debf766faa84be
selftests/powerpc: Import Anton's context_switch2 benchmark

This gets referred to a lot in commit messages, so let's pull it into
the selftests.

Almost vanilla from: http://ozlabs.org/~anton/junkcode/context_switch2.c

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Anton Blanchard <anton@samba.org>
tools/testing/selftests/powerpc/benchmarks/.gitignore
tools/testing/selftests/powerpc/benchmarks/Makefile
tools/testing/selftests/powerpc/benchmarks/context_switch.c [new file with mode: 0644]