summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
diff options
context:
space:
mode:
authorYong Zhao <Yong.Zhao@amd.com>2019-11-08 07:59:43 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-11-19 17:47:17 +0300
commitccdef35d0714f620ca70b23b6000cbb630efea1b (patch)
tree49fffeaa2bcfffbee2ae12b1947d6c5bd4096f22 /drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
parent84ce6c48675b55e937814e7c688c46ab15242b8a (diff)
downloadlinux-ccdef35d0714f620ca70b23b6000cbb630efea1b.tar.xz
drm/amdkfd: Eliminate ops_asic_specific in kernel queue
The ops_asic_specific function pointers are actually quite generic after using a simple if condition. Eliminate it by code refactoring. Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
index a9a35897d8b7..475e9499c0af 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h
@@ -66,7 +66,6 @@ struct kernel_queue_ops {
struct kernel_queue {
struct kernel_queue_ops ops;
- struct kernel_queue_ops ops_asic_specific;
/* data */
struct kfd_dev *dev;
@@ -99,7 +98,4 @@ struct kernel_queue {
struct list_head list;
};
-void kernel_queue_init_vi(struct kernel_queue_ops *ops);
-void kernel_queue_init_v9(struct kernel_queue_ops *ops);
-
#endif /* KFD_KERNEL_QUEUE_H_ */