diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-02 04:44:11 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-16 18:46:43 -0500 |
commit | 51c21e72eb99d1136614135d633baae269893778 (patch) | |
tree | 198dc9b4e14a1eac3a0388a0b39b1ac0ce149fec /tools | |
parent | ea0c321784565c681507e02acf900deaa1e9e952 (diff) |
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')
-rw-r--r-- | tools/testing/selftests/powerpc/benchmarks/context_switch.c | 12 |
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; | |||
33 | static int touch_vdso; | 33 | static int touch_vdso; |
34 | struct timeval tv; | 34 | struct timeval tv; |
35 | 35 | ||
36 | static int touch_fp; | 36 | static int touch_fp = 1; |
37 | double fp; | 37 | double fp; |
38 | 38 | ||
39 | static int touch_vector; | 39 | static int touch_vector = 1; |
40 | typedef int v4si __attribute__ ((vector_size (16))); | 40 | typedef int v4si __attribute__ ((vector_size (16))); |
41 | v4si a, b, c; | 41 | v4si a, b, c; |
42 | 42 | ||
43 | #ifdef __powerpc__ | 43 | #ifdef __powerpc__ |
44 | static int touch_altivec; | 44 | static int touch_altivec = 1; |
45 | 45 | ||
46 | static void __attribute__((__target__("no-vsx"))) altivec_touch_fn(void) | 46 | static void __attribute__((__target__("no-vsx"))) altivec_touch_fn(void) |
47 | { | 47 | { |
@@ -354,11 +354,11 @@ static struct option options[] = { | |||
354 | { "process", no_argument, &processes, 1 }, | 354 | { "process", no_argument, &processes, 1 }, |
355 | { "timeout", required_argument, 0, 's' }, | 355 | { "timeout", required_argument, 0, 's' }, |
356 | { "vdso", no_argument, &touch_vdso, 1 }, | 356 | { "vdso", no_argument, &touch_vdso, 1 }, |
357 | { "fp", no_argument, &touch_fp, 1 }, | 357 | { "no-fp", no_argument, &touch_fp, 0 }, |
358 | #ifdef __powerpc__ | 358 | #ifdef __powerpc__ |
359 | { "altivec", no_argument, &touch_altivec, 1 }, | 359 | { "no-altivec", no_argument, &touch_altivec, 0 }, |
360 | #endif | 360 | #endif |
361 | { "vector", no_argument, &touch_vector, 1 }, | 361 | { "no-vector", no_argument, &touch_vector, 0 }, |
362 | { 0, }, | 362 | { 0, }, |
363 | }; | 363 | }; |
364 | 364 | ||