summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorAlexey Skidanov2014-11-19 16:07:00 +0100
committerOded Gabbay2014-11-19 16:07:00 +0100
commit52a5fdce136bcaabc719be6e8f141d68426b3c74 (patch)
treebc5bce320569f6b2ef400944638a50eedf92255f /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentamdkfd: use schedule() in sync_with_hw (diff)
downloadkernel-qcow2-linux-52a5fdce136bcaabc719be6e8f141d68426b3c74.tar.gz
kernel-qcow2-linux-52a5fdce136bcaabc719be6e8f141d68426b3c74.tar.xz
kernel-qcow2-linux-52a5fdce136bcaabc719be6e8f141d68426b3c74.zip
amdkfd: Instead of using get function, use container_of
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index d0bcafcf048f..f9fb81e3bb09 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -414,6 +414,8 @@ struct kfd_process_device {
bool bound;
};
+#define qpd_to_pdd(x) container_of(x, struct kfd_process_device, qpd)
+
/* Process data */
struct kfd_process {
/*