summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-11-28 19:45:55 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-04-29 00:44:23 +0300
commitf43a9f18e0d52c1ab2455be42528cc2a49457890 (patch)
treef2ece320903c20e8035eb29afa60aa0d25168573 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent7324d02a6545414fff3bcd2c6e95b9e1041a327e (diff)
downloadlinux-f43a9f18e0d52c1ab2455be42528cc2a49457890.tar.xz
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 <christophe.jaillet@wanadoo.fr> Reviewed-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_ucode.c')
0 files changed, 0 insertions, 0 deletions