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)
commit0e35850b341e88055ca11cad74efa464b2159984
tree5e37c65b24a99a2c8b3c51cfbb5a598a9aa3b742
parente9a023f2b73ac35ff5cfbefe8524c64d8173d65f
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