summaryrefslogtreecommitdiffstats
path: root/Documentation/admin-guide/kernel-parameters.rst
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-02-10 23:48:56 +0100
committerWill Deacon <will@kernel.org>2022-02-15 15:38:57 +0100
commit95ed57c73bbcffa02cbb1d61c19484c2ec6de094 (patch)
tree868ab4d1a7d99ade05dc3729f5dc705d10387d87 /Documentation/admin-guide/kernel-parameters.rst
parentperf: Replace acpi_bus_get_device() (diff)
downloadlinux-95ed57c73bbcffa02cbb1d61c19484c2ec6de094.tar.xz
linux-95ed57c73bbcffa02cbb1d61c19484c2ec6de094.zip
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>
Diffstat (limited to 'Documentation/admin-guide/kernel-parameters.rst')
0 files changed, 0 insertions, 0 deletions