selftests/powerpc: Add have_hwcap2() helper
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Nov 2015 02:05:39 +0000 (13:05 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Dec 2015 09:41:47 +0000 (20:41 +1100)
commitede8ef3f824ea6e853a5e4b27467f583cdaa314e
tree39237f6a1e7c5ff66bc6e0f216c789ee6f2cb2ac
parentfcb45ec074725baeb3aaa1b1854b9f44c3eebacf
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>
tools/testing/selftests/powerpc/pmu/ebb/ebb.c
tools/testing/selftests/powerpc/tm/tm-syscall.c
tools/testing/selftests/powerpc/utils.h