OSDN Git Service

drm/amdgpu: use the DFS iterator in amdgpu_vm_invalidate_pds v2
authorChristian König <christian.koenig@amd.com>
Sat, 8 Sep 2018 11:05:34 +0000 (13:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:09 +0000 (15:14 -0500)
commitd4085ea9bc8dc44eb4bfd696474f9ef26ec9e0cd
tree708c19712aa0c5c64986602964d88694b16e87ef
parent229a37f83454c59a9c8742c811119da4a33d619b
drm/amdgpu: use the DFS iterator in amdgpu_vm_invalidate_pds v2

Less code and easier to maintain.

v2: rename the function as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c