linux/tools/include/asm
Jason A. Donenfeld 210860e7f7 selftests: vDSO: check cpu caps before running chacha test
Some archs -- arm64 and s390x -- implemented chacha using instructions
that are available most places, but aren't always available. The kernel
handles this just fine, but the selftest does not. Check the hwcaps
before running, and skip the test if the cpu doesn't support it. As
well, on s390x, always emit the fallback instructions of an alternative
block, to ensure maximum compatibility.

Co-developed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2024-09-16 13:22:04 +02:00
..
alternative.h selftests: vDSO: check cpu caps before running chacha test 2024-09-16 13:22:04 +02:00
atomic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
barrier.h nds32: Remove the architecture 2022-03-07 13:54:59 +01:00
bug.h tools: Add missing stdio.h include to asm/bug.h header 2019-09-25 09:51:44 -03:00
export.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
rwonce.h selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
sections.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00