From 419f21cd5826a38a1759fde2a4daba92a4f9a7bc Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 20 Feb 2012 14:50:26 +0200 Subject: 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 Reviewed-on: http://git-master/r/84808 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ilan Aelion Reviewed-by: Acorn Pooley --- drivers/video/tegra/host/nvhost_cdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video/tegra/host/nvhost_cdma.c') 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) -- cgit v1.2.3