drm/amdgpu: Optimize a function called by every IB sheduling
authorAlex Xie <AlexBin.Xie@amd.com>
Tue, 30 May 2017 21:10:16 +0000 (17:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 18:16:38 +0000 (14:16 -0400)
commitdd684d313e280c3bad2ebb7b33e7688ab5409bc9
tree4963987a0c85ab514b9c317944ed5fc369c46ef9
parent1410f64651e35411b4bb7a10f32eb6225925110a
drm/amdgpu: Optimize a function called by every IB sheduling

  Move several if statements and a loop statment from
  run time to initialization time.

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c