drm/ttm: cleanup and optimize ttm_bo_mem_compat v2
authorChristian König <christian.koenig@amd.com>
Wed, 29 Mar 2017 09:47:04 +0000 (11:47 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Apr 2017 03:33:41 +0000 (23:33 -0400)
commit018b7fc3a9ac33ac56310ab301dca402155eee15
treeae7640ecf50df7e328534a750afdc1860b2a5d4a
parent76e15e029ba6cf3d203e6d136db16a00a3f76909
drm/ttm: cleanup and optimize ttm_bo_mem_compat v2

No need to implement the same logic twice. Also check if the busy placements
are identical to the already scanned placements before checking them.

v2: improve check even more as suggested by Michel.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c