]> 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)
commitcd4cca0d8e86bae0a6a128063ec32ddf4f428c17
tree5e37c65b24a99a2c8b3c51cfbb5a598a9aa3b742
parentda4811f0b0f852ff0d9030d02f83c1c8e1355c69
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