OSDN Git Service

drm/amdgpu: use dfs iterator to free PDs/PTs
authorChristian König <christian.koenig@amd.com>
Thu, 6 Sep 2018 13:35:13 +0000 (15:35 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:09 +0000 (15:14 -0500)
commit229a37f83454c59a9c8742c811119da4a33d619b
tree087de522b32bc62bd20d8187d7d62b612b339f5d
parentd72a6887eef880271c0d48ed427329ccc0d547f9
drm/amdgpu: use dfs iterator to free PDs/PTs

Allows us to free all PDs/PTs without recursion.

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