]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73a7fdbae0e79d370de501e7c0fe1fa43989c772
tree162704703fc64cd4c98c87229cd7e6dc0207056b
parent7000617e58669eed10b9a0cd1faccd7d00b2216a
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