linux-stable/drivers/perf/hisilicon
Yury Norov 95ed57c73b perf: replace bitmap_weight with bitmap_empty where appropriate
In some places, drivers/perf code calls bitmap_weight() to check if any
bit of a given bitmap is set. It's better to use bitmap_empty() in that
case because bitmap_empty() stops traversing the bitmap as soon as it
finds first set bit, while bitmap_weight() counts all bits unconditionally.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220210224933.379149-13-yury.norov@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
2022-02-15 14:38:57 +00:00
..
hisi_pcie_pmu.c drivers/perf: hisi: Add driver for HiSilicon PCIe PMU 2021-12-14 12:30:26 +00:00
hisi_uncore_ddrc_pmu.c drivers/perf: hisi: use the correct HiSilicon copyright 2021-06-01 14:18:47 +01:00
hisi_uncore_hha_pmu.c drivers/perf: hisi: Fix data source control 2021-06-04 19:21:09 +01:00
hisi_uncore_l3c_pmu.c drivers/perf: hisi: use the correct HiSilicon copyright 2021-06-01 14:18:47 +01:00
hisi_uncore_pa_pmu.c drivers/perf: hisi: Fix PA PMU counter offset 2021-10-04 13:10:14 +01:00
hisi_uncore_pmu.c perf: replace bitmap_weight with bitmap_empty where appropriate 2022-02-15 14:38:57 +00:00
hisi_uncore_pmu.h drivers/perf: hisi: use the correct HiSilicon copyright 2021-06-01 14:18:47 +01:00
hisi_uncore_sllc_pmu.c perf/hisi: Constify static attribute_group structs 2021-06-08 12:49:54 +01:00
Kconfig drivers/perf: hisi: Add driver for HiSilicon PCIe PMU 2021-12-14 12:30:26 +00:00
Makefile drivers/perf: hisi: Add driver for HiSilicon PCIe PMU 2021-12-14 12:30:26 +00:00