diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-24 03:05:39 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-14 10:41:47 +0100 |
commit | ede8ef3f824ea6e853a5e4b27467f583cdaa314e (patch) | |
tree | 39237f6a1e7c5ff66bc6e0f216c789ee6f2cb2ac /tools/testing/selftests/powerpc/pmu | |
parent | selftests/powerpc: Move get_auxv_entry() into utils.c (diff) | |
download | linux-ede8ef3f824ea6e853a5e4b27467f583cdaa314e.tar.xz linux-ede8ef3f824ea6e853a5e4b27467f583cdaa314e.zip |
selftests/powerpc: Add have_hwcap2() helper
We already do this twice and want to add another so add a helper.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/pmu')
-rw-r--r-- | tools/testing/selftests/powerpc/pmu/ebb/ebb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/ebb.c b/tools/testing/selftests/powerpc/pmu/ebb/ebb.c index 9729d9f90218..e67452f1bcff 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/ebb.c +++ b/tools/testing/selftests/powerpc/pmu/ebb/ebb.c @@ -13,7 +13,6 @@ #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> -#include <linux/auxvec.h> #include "trace.h" #include "reg.h" @@ -324,7 +323,7 @@ bool ebb_is_supported(void) { #ifdef PPC_FEATURE2_EBB /* EBB requires at least POWER8 */ - return ((long)get_auxv_entry(AT_HWCAP2) & PPC_FEATURE2_EBB); + return have_hwcap2(PPC_FEATURE2_EBB); #else return false; #endif |