]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b913c6cb42421efbdeec547c7f3bed25830ae2b
treed567a41f12f8f43150e23f26a05ad3a30ca9d15b
parent98a863ec89196544f35da1f33477fff6ea7f1998
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