summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvhost_cdma.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-02-20 14:50:26 +0200
committerSimone Willett <swillett@nvidia.com>2012-03-20 13:46:33 -0700
commit419f21cd5826a38a1759fde2a4daba92a4f9a7bc (patch)
tree376c4da30a3c31496255dcd57f4020d80db43cda /drivers/video/tegra/host/nvhost_cdma.c
parent590fd1f9ad46649ede95348e73e4b0cc246f6390 (diff)
video: tegra: host: Fix sync point comparison
Fix sync point comparison to take into account old expired values, and do proper comparison taking into account wrapping. Bug 941327 Change-Id: I70724637ba870b2e29bac695abc0ea2b968394d7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/84808 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ilan Aelion <iaelion@nvidia.com> Reviewed-by: Acorn Pooley <apooley@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/nvhost_cdma.c')
-rw-r--r--drivers/video/tegra/host/nvhost_cdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_cdma.c b/drivers/video/tegra/host/nvhost_cdma.c
index 390497759020..775d761e65c9 100644
--- a/drivers/video/tegra/host/nvhost_cdma.c
+++ b/drivers/video/tegra/host/nvhost_cdma.c
@@ -163,7 +163,7 @@ static void update_cdma_locked(struct nvhost_cdma *cdma)
BUG_ON(job->syncpt_id == NVSYNCPT_INVALID);
/* Check whether this syncpt has completed, and bail if not */
- if (!nvhost_syncpt_min_cmp(sp,
+ if (!nvhost_syncpt_is_expired(sp,
job->syncpt_id, job->syncpt_end)) {
/* Start timer on next pending syncpt */
if (job->timeout)