drm/amdkfd: Reorganize kfd resume code
authorYong Zhao <yong.zhao@amd.com>
Wed, 20 Sep 2017 22:10:13 +0000 (18:10 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 20 Sep 2017 22:10:13 +0000 (18:10 -0400)
commitb8935a7c4b4f2c487c639eb9071b4e8f0cbeac4a
tree16620f30db7fac6606b623f0561045d6a7127244
parent40d86701a625eed9e644281b9af228d6a52d8ed9
drm/amdkfd: Reorganize kfd resume code

The idea is to let kfd init and resume function share the same code path
as much as possible, rather than to have two copies of almost identical
code. That way improves the code readability and maintainability.

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c