]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: shrink critical section in amdgpu_amdkfd_gpuvm_free_memory_of_gpu
authorBernard Zhao <bernard@vivo.com>
Tue, 21 Apr 2020 06:48:18 +0000 (23:48 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Apr 2020 19:39:53 +0000 (15:39 -0400)
commit9412a33df9c37f05d8bc50837988bb9cd9248cd4
treef928d86ebbb2e98849b896cfd6f3e5bafcf3895c
parent7f89ccf8da419fdc42953bcf29643db408ca2637
drm/amdgpu: shrink critical section in amdgpu_amdkfd_gpuvm_free_memory_of_gpu

Reduce the mem->lock`s protected code area, no need to protect pr_debug.
This also simplifies error handling.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c