mbox series

[v2,0/2] HWCAP for FEAT_HBC

Message ID 20230804143746.3900803-1-joey.gouly@arm.com (mailing list archive)
Headers show
Series HWCAP for FEAT_HBC | expand

Message

Joey Gouly Aug. 4, 2023, 2:37 p.m. UTC
Hi,

Small series for adding a HWCAP for FEAT_HBC (hinted conditional branches).

Changes since v1 [1]:
	- Add "cc" clobber to inline asm
	- Confirmed that binutils/llvm calls the feature 'hbc'

Thanks,
Joey

[1] https://lore.kernel.org/linux-arm-kernel/20230801100008.3125054-1-joey.gouly@arm.com/

Joey Gouly (2):
  arm64: add HWCAP for FEAT_HBC (hinted conditional branches)
  selftests/arm64: add HWCAP2_HBC test

 arch/arm64/include/asm/hwcap.h            |  1 +
 arch/arm64/include/uapi/asm/hwcap.h       |  1 +
 arch/arm64/kernel/cpufeature.c            |  3 ++-
 arch/arm64/kernel/cpuinfo.c               |  1 +
 tools/testing/selftests/arm64/abi/hwcap.c | 15 +++++++++++++++
 5 files changed, 20 insertions(+), 1 deletion(-)

Comments

Will Deacon Aug. 4, 2023, 6:10 p.m. UTC | #1
On Fri, 4 Aug 2023 15:37:44 +0100, Joey Gouly wrote:
> Small series for adding a HWCAP for FEAT_HBC (hinted conditional branches).
> 
> Changes since v1 [1]:
> 	- Add "cc" clobber to inline asm
> 	- Confirmed that binutils/llvm calls the feature 'hbc'
> 
> Thanks,
> Joey
> 
> [...]

Applied to arm64 (for-next/cpufeature), thanks!

[1/2] arm64: add HWCAP for FEAT_HBC (hinted conditional branches)
      https://git.kernel.org/arm64/c/7f86d128e437
[2/2] selftests/arm64: add HWCAP2_HBC test
      https://git.kernel.org/arm64/c/d70175b1470c

Cheers,