drm/ttm: use ffs in ttm_mem_type_from_place
authorChristian König <christian.koenig@amd.com>
Mon, 12 Sep 2016 11:16:16 +0000 (13:16 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Sep 2016 19:10:41 +0000 (15:10 -0400)
commit5d98d0bcff64c9a76d21da9648881e14ed26fff6
tree162704703fc64cd4c98c87229cd7e6dc0207056b
parent5756b1558eabdfb087aa9896250c6decd12bf872
drm/ttm: use ffs in ttm_mem_type_from_place

A bit pointless to search for the first bit set manually.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c