]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Jul 2022 20:36:30 +0000 (22:36 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:30 +0000 (09:09 +0300)
commit6d41e135ea70940087db01c6da12a06b8b7fc86b
treec2413d6a79df28a51e2e17aaeb35b7c0574fc649
parent81ed1b6d0080d0aef9cb9536a1c632db88a4b016
habanalabs: 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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/asid.c