]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: perf: use bitmap_empty() where appropriate
authorYury Norov (NVIDIA) <yury.norov@gmail.com>
Tue, 16 Dec 2025 01:20:03 +0000 (20:20 -0500)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 20:39:40 +0000 (20:39 +0000)
commit0c7c64146f707ffe7abd5d11c9828d8129903ab5
treeff7d88a119daddc135329017462a138fe74b94f6
parent12a94953c37e834c3eabb839ce057094946fe67a
drivers: perf: use bitmap_empty() where appropriate

bitmap_empty() is more verbose and efficient, as it stops traversing
bitmaps as soon as the 1st set bit found.

Switch perf code to using bitmap_empty() where appropriate, and
correspondingly use boolean types.

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/riscv_pmu_sbi.c
drivers/perf/starfive_starlink_pmu.c