summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorYong Zhao2017-09-21 00:10:15 +0200
committerOded Gabbay2017-09-21 00:10:15 +0200
commit8c72c3d7dfa86f7e84c5397975eb9c803e4de7b6 (patch)
tree8d5ff01bf9ccf8ea1fbab74aa49d00bd45126d87 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdkfd: Fix suspend/resume issue on Carrizo v2 (diff)
downloadkernel-qcow2-linux-8c72c3d7dfa86f7e84c5397975eb9c803e4de7b6.tar.gz
kernel-qcow2-linux-8c72c3d7dfa86f7e84c5397975eb9c803e4de7b6.tar.xz
kernel-qcow2-linux-8c72c3d7dfa86f7e84c5397975eb9c803e4de7b6.zip
drm/amdkfd: Rectify the jiffies calculation error with milliseconds v2
The timeout in milliseconds should not be regarded as jiffies. This commit fixed that. v2: - use msecs_to_jiffies - change timeout_ms parameter to unsigned int to match msecs_to_jiffies Signed-off-by: Yong Zhao <yong.zhao@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.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, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index c71160422348..f37fbfd0e917 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -672,7 +672,7 @@ struct kernel_queue *pqm_get_kernel_queue(struct process_queue_manager *pqm,
int amdkfd_fence_wait_timeout(unsigned int *fence_addr,
unsigned int fence_value,
- unsigned long timeout);
+ unsigned int timeout_ms);
/* Packet Manager */