aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-11-28 16:46:15 +0000
committerAlex Deucher <[email protected]>2022-04-28 21:44:29 +0000
commitb8b9ba58b6f93d84a8494065a56ae26893d2b54e (patch)
tree342b9b2189ffe56774583f188a4ef518c8880def /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/amdkfd: Use bitmap_zalloc() when applicable (diff)
downloadkernel-b8b9ba58b6f93d84a8494065a56ae26893d2b54e.tar.gz
kernel-b8b9ba58b6f93d84a8494065a56ae26893d2b54e.zip
drm/amdkfd: Use non-atomic bitmap functions when possible
All uses of the 'kfd->gtt_sa_bitmap' bitmap are protected with the 'kfd->gtt_sa_lock' mutex. So: - prefer the non-atomic '__set_bit()' function - use the non-atomic 'bitmap_[set|clear]()' functions instead of equivalent 'for' loops. These functions can work on several bits at a time 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