diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-15 01:07:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-16 13:22:04 +0200 |
commit | 210860e7f7337e47e77577fa5bb168767e2d8a1e (patch) | |
tree | 79862126621141b90a8210239d96679b17b608b5 /arch/loongarch/include | |
parent | s390/vdso: Wire up getrandom() vdso implementation (diff) | |
download | linux-210860e7f7337e47e77577fa5bb168767e2d8a1e.tar.xz linux-210860e7f7337e47e77577fa5bb168767e2d8a1e.zip |
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>
Diffstat (limited to 'arch/loongarch/include')
0 files changed, 0 insertions, 0 deletions