]> git.baikalelectronics.ru Git - kernel.git/commit
perf/arm-cci: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 6 Jul 2022 05:20:15 +0000 (07:20 +0200)
committerWill Deacon <will@kernel.org>
Wed, 6 Jul 2022 10:02:58 +0000 (11:02 +0100)
commit93494537a872fcb50be8cb3d77fd841aff04c334
tree5e37c65b24a99a2c8b3c51cfbb5a598a9aa3b742
parent475050bcdfb5f34e39b7e6c181ca79575ceb3e70
perf/arm-cci: Use the bitmap API to allocate bitmaps

Use devm_bitmap_zalloc() instead of hand-writing it.
It is less verbose and it improves the semantic.

While at it, use bitmap_zero() instead of hand-writing it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/fbde85a5e8ae99b10a2115d8ea1e69320a62947f.1657084786.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cci.c