MIPS: mm: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 20:56:51 +0000 (22:56 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 11 Jul 2022 08:28:12 +0000 (10:28 +0200)
commitb5eb8b536f91f52d4f3688bcae86bf85ba693a00
treeedfd8e40bf26e18871a732d85f4e97b4e8363c30
parent8512670d3547d19a7e013e0b1e2e1916d8ee4000
MIPS: mm: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc() 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: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/context.c