csky: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 4 Jul 2022 19:06:46 +0000 (21:06 +0200)
committerGuo Ren <guoren@linux.alibaba.com>
Sat, 23 Jul 2022 01:36:14 +0000 (21:36 -0400)
commit49a1a3cf7316e464e559850a965f3826b1562458
treed567a41f12f8f43150e23f26a05ad3a30ca9d15b
parenta2310c74d418deca0f1d749c45f1f43162510f51
csky: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

While at it, turn a bitmap_clear() into an equivalent bitmap_zero(). It is
also less verbose.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/mm/asid.c