OSDN Git Service

drm/amdgpu: avoid the modulo in amdgpu_vm_get_entry
authorChristian König <christian.koenig@amd.com>
Fri, 1 Dec 2017 12:28:46 +0000 (13:28 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 19:45:54 +0000 (14:45 -0500)
commite3a1b32a12ef83e260a307e678d053d5f4570acd
treeb1a1d6d9a715ac30a68a75cceb768896aec731e8
parent2ffe31deb27579e2f2c9444e01f4d8abf385d145
drm/amdgpu: avoid the modulo in amdgpu_vm_get_entry

We can do this with a simple mask as well.

Signed-off-by: Christian König <christian.koenig@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_vm.c