diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-23 21:46:44 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-01 16:02:27 -0500 |
commit | b9dd6fbd1587ca1204e6b5ea536115ab3fed1798 (patch) | |
tree | 2dfbe293cdd6d686aaeaec4af514f7c358afd36e /drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | |
parent | b7e7e6ca1f7b5abc9a4d13c9e929e431240d9f48 (diff) | |
download | linux-b9dd6fbd1587ca1204e6b5ea536115ab3fed1798.tar.bz2 |
drm/amdkfd: Use bitmap_zalloc() when applicable
'doorbell_bitmap' and 'queue_slot_bitmap' are bitmaps. So use
'bitmap_zalloc()' to simplify code, improve the semantic and avoid some
open-coded arithmetic in allocator arguments.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c')
0 files changed, 0 insertions, 0 deletions