diff options
| author | Christophe JAILLET <[email protected]> | 2021-11-28 16:45:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-04-28 21:44:23 +0000 |
| commit | f43a9f18e0d52c1ab2455be42528cc2a49457890 (patch) | |
| tree | f2ece320903c20e8035eb29afa60aa0d25168573 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/amd/display: protect remaining FPU-code calls on dcn3.1.x (diff) | |
| download | kernel-f43a9f18e0d52c1ab2455be42528cc2a49457890.tar.gz kernel-f43a9f18e0d52c1ab2455be42528cc2a49457890.zip | |
drm/amdkfd: Use bitmap_zalloc() when applicable
'kfd->gtt_sa_bitmap' is a bitmap. 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.
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
