aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-11-23 20:46:44 +0000
committerAlex Deucher <[email protected]>2021-12-01 21:02:27 +0000
commitb9dd6fbd1587ca1204e6b5ea536115ab3fed1798 (patch)
tree2dfbe293cdd6d686aaeaec4af514f7c358afd36e /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/display: fix application of sizeof to pointer (diff)
downloadkernel-b9dd6fbd1587ca1204e6b5ea536115ab3fed1798.tar.gz
kernel-b9dd6fbd1587ca1204e6b5ea536115ab3fed1798.zip
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 <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions