aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-12-02 20:44:11 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-17 10:46:43 +1100
commit51c21e72eb99d1136614135d633baae269893778 (patch)
tree198dc9b4e14a1eac3a0388a0b39b1ac0ce149fec /tools/testing/selftests
parentselftests/powerpc: Make context_switch do something with no args (diff)
downloadlinux-dev-51c21e72eb99d1136614135d633baae269893778.tar.xz
linux-dev-51c21e72eb99d1136614135d633baae269893778.zip
selftests/powerpc: Make context_switch touch FP/altivec/vector by default
Simply because it touches more code paths that way, and therefore tests more things. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/context_switch.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/context_switch.c b/tools/testing/selftests/powerpc/benchmarks/context_switch.c
index d8b6d10f36a6..7b785941adec 100644
--- a/tools/testing/selftests/powerpc/benchmarks/context_switch.c
+++ b/tools/testing/selftests/powerpc/benchmarks/context_switch.c
@@ -33,15 +33,15 @@ static unsigned int timeout = 30;
static int touch_vdso;
struct timeval tv;
-static int touch_fp;
+static int touch_fp = 1;
double fp;
-static int touch_vector;
+static int touch_vector = 1;
typedef int v4si __attribute__ ((vector_size (16)));
v4si a, b, c;
#ifdef __powerpc__
-static int touch_altivec;
+static int touch_altivec = 1;
static void __attribute__((__target__("no-vsx"))) altivec_touch_fn(void)
{
@@ -354,11 +354,11 @@ static struct option options[] = {
{ "process", no_argument, &processes, 1 },
{ "timeout", required_argument, 0, 's' },
{ "vdso", no_argument, &touch_vdso, 1 },
- { "fp", no_argument, &touch_fp, 1 },
+ { "no-fp", no_argument, &touch_fp, 0 },
#ifdef __powerpc__
- { "altivec", no_argument, &touch_altivec, 1 },
+ { "no-altivec", no_argument, &touch_altivec, 0 },
#endif
- { "vector", no_argument, &touch_vector, 1 },
+ { "no-vector", no_argument, &touch_vector, 0 },
{ 0, },
};