]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/fpsimd: simplify sme_setup()
authorYury Norov (NVIDIA) <yury.norov@gmail.com>
Sat, 13 Sep 2025 00:09:05 +0000 (20:09 -0400)
committerWill Deacon <will@kernel.org>
Tue, 16 Sep 2025 20:05:48 +0000 (21:05 +0100)
commit19dd484cd19c308e2ea763f8d31e43a7f1ab6141
treead2a8314bcc0ebdfc2a89cf3e32edb72c3c9580b
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
arm64/fpsimd: simplify sme_setup()

The function checks info->vq_map for emptiness right before calling
find_last_bit().

We can use the find_last_bit() output and save on bitmap_empty() call,
which is O(N).

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/fpsimd.c