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:10 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-17 10:46:42 +1100
commitea0c321784565c681507e02acf900deaa1e9e952 (patch)
tree930dfa4267bd7778f5ba79e8b0fdd3ac69ab84a3 /tools/testing/selftests/powerpc/benchmarks/Makefile
parentselftests/powerpc: Import Anton's context_switch2 benchmark (diff)
downloadlinux-dev-ea0c321784565c681507e02acf900deaa1e9e952.tar.xz
linux-dev-ea0c321784565c681507e02acf900deaa1e9e952.zip
selftests/powerpc: Make context_switch do something with no args
For ease of use make the context_switch test do something useful when called with no arguments. Default to a 30 second run, using threads, doing yield, and use any online cpu. Make it print out what it's doing to avoid confusion. 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/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/Makefile b/tools/testing/selftests/powerpc/benchmarks/Makefile
index 8cb7415c55aa..912445ff7ce7 100644
--- a/tools/testing/selftests/powerpc/benchmarks/Makefile
+++ b/tools/testing/selftests/powerpc/benchmarks/Makefile
@@ -6,6 +6,7 @@ all: $(TEST_PROGS)
$(TEST_PROGS): ../harness.c
+context_switch: ../utils.c
context_switch: LDLIBS += -lpthread
include ../../lib.mk