.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Context switch microbenchmark. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Anton Blanchard <anton@au.ibm.com>, IBM |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * as published by the Free Software Foundation; either version |
---|
9 | | - * 2 of the License, or (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #define _GNU_SOURCE |
---|
.. | .. |
---|
485 | 481 | else |
---|
486 | 482 | printf("futex"); |
---|
487 | 483 | |
---|
| 484 | + if (!have_hwcap(PPC_FEATURE_HAS_ALTIVEC)) |
---|
| 485 | + touch_altivec = 0; |
---|
| 486 | + |
---|
| 487 | + if (!have_hwcap(PPC_FEATURE_HAS_VSX)) |
---|
| 488 | + touch_vector = 0; |
---|
| 489 | + |
---|
488 | 490 | printf(" on cpus %d/%d touching FP:%s altivec:%s vector:%s vdso:%s\n", |
---|
489 | 491 | cpu1, cpu2, touch_fp ? "yes" : "no", touch_altivec ? "yes" : "no", |
---|
490 | 492 | touch_vector ? "yes" : "no", touch_vdso ? "yes" : "no"); |
---|