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>
This commit is contained in:
Alex Xie 2017-05-30 17:10:16 -04:00 • committed by Alex Deucher
commit dd684d313e
3 changed files with 40 additions and 27 deletions