aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/benchmarks/Makefile
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-12-02 20:44:09 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-17 10:46:42 +1100
commit00b7ec5c9cf338902faea2e40801573a384e45be (patch)
tree1c2f5994e1d92ec156466f25cd97c2e6f7b790eb /tools/testing/selftests/powerpc/benchmarks/Makefile
parentselftests/powerpc: Move pick_online_cpu() up into utils.c (diff)
downloadlinux-dev-00b7ec5c9cf338902faea2e40801573a384e45be.tar.xz
linux-dev-00b7ec5c9cf338902faea2e40801573a384e45be.zip
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>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/Makefile b/tools/testing/selftests/powerpc/benchmarks/Makefile
index 5fa48702070d..8cb7415c55aa 100644
--- a/tools/testing/selftests/powerpc/benchmarks/Makefile
+++ b/tools/testing/selftests/powerpc/benchmarks/Makefile
@@ -1,4 +1,4 @@
-TEST_PROGS := gettimeofday
+TEST_PROGS := gettimeofday context_switch
CFLAGS += -O2
@@ -6,6 +6,8 @@ all: $(TEST_PROGS)
$(TEST_PROGS): ../harness.c
+context_switch: LDLIBS += -lpthread
+
include ../../lib.mk
clean: