kselftest/arm64: Only enumerate VLs once in syscall-abi
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 13:06:36 +0000 (13:06 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Jan 2023 16:20:31 +0000 (16:20 +0000)
commitfae491e52cc2b48097bd93fceb687ccbacd263c4
treebe9c0a6dc071a489cc7cbe7c4542ff4f94ae26c3
parent97ec597b26df774a257e3f8e97353fd1b4471615
kselftest/arm64: Only enumerate VLs once in syscall-abi

Currently syscall-abi not only enumerates the SVE VLs twice while working
out how many tests are planned, it also repeats the enumeration process
while doing the actual tests. Record the VLs when we enumerate and use that
list when we are performing the tests, removing some duplicated logic.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221223-arm64-syscall-abi-sme-only-v1-2-4fabfbd62087@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/syscall-abi.c