]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kselftest/arm64: Raise default number of loops in fp-pidbench
authorMark Brown <broonie@kernel.org>
Tue, 27 Jan 2026 16:16:15 +0000 (16:16 +0000)
committerWill Deacon <will@kernel.org>
Wed, 28 Jan 2026 13:09:30 +0000 (13:09 +0000)
When fp-pidbench was originally written SVE hardware was not widely
available so it was useful to run it in emulation and the default number
of loops was set very low, running for less than a second on actual
hardware. Now that SVE hardware is reasonably available it is very much
less interesting to use emulation, bump the default number of loops up to
even out a bit of the noise on real systems. On the machine I have to hand
this now takes about 15s which is still a toy microbenchmark but perhaps a
bit more useful.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/fp-pidbench.S

index aeeadc7873dc1456da892524ecc58b8b43bfe25b..881dfa3b342e078e805d45758080f0b5797f880a 100644 (file)
@@ -33,7 +33,7 @@
 function _start
        puts    "Iterations per test: "
        mov     x20, #10000
-       lsl     x20, x20, #8
+       lsl     x20, x20, #12
        mov     x0, x20
        bl      putdec
        puts    "\n"