selftests/powerpc: Make context_switch do something with no args
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Dec 2015 09:44:10 +0000 (20:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Dec 2015 23:46:42 +0000 (10:46 +1100)
commitea0c321784565c681507e02acf900deaa1e9e952
tree930dfa4267bd7778f5ba79e8b0fdd3ac69ab84a3
parent00b7ec5c9cf338902faea2e40801573a384e45be
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>
tools/testing/selftests/powerpc/benchmarks/Makefile
tools/testing/selftests/powerpc/benchmarks/context_switch.c