]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amdkfd: Encapsulate KQ functions in ops structure
authorOded Gabbay <oded.gabbay@amd.com>
Mon, 12 Jan 2015 13:53:44 +0000 (15:53 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 12 Jan 2015 13:53:44 +0000 (15:53 +0200)
commit443fbd5f115feba160a8d7ed6ac708cb91e3b955
tree49c3cfd1ac5b30995cad16098d6706a9c834fa84
parenta22fc85495575d81c36db24b12f66fd314b7ced1
drm/amdkfd: Encapsulate KQ functions in ops structure

This patch does some re-org on the kernel_queue structure. It takes out
all the function pointers from the structure and puts them in a new structure,
called kernel_queue_ops. Then, it puts an instance of that structure
inside kernel_queue.

This re-org is done to prepare the KQ module to support more than one AMD APU
(Kaveri).

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c