drm/amdgpu: add spin lock to protect freed list in vm (v2)

there is a protection fault about freed list when OCL test.
add a spin lock to protect it.

v2: drop changes in vm_fini

Signed-off-by: JimQu <jim.qu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
jimqu 2015-12-04 17:17:00 +08:00 • committed by Alex Deucher
commit 9c4153b1ee
2 changed files with 15 additions and 3 deletions