summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/t20/syncpt_t20.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/t20/syncpt_t20.c')
-rw-r--r--drivers/video/tegra/host/t20/syncpt_t20.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/t20/syncpt_t20.c b/drivers/video/tegra/host/t20/syncpt_t20.c
index 7b471738f9d9..259e80fd25f6 100644
--- a/drivers/video/tegra/host/t20/syncpt_t20.c
+++ b/drivers/video/tegra/host/t20/syncpt_t20.c
@@ -120,7 +120,7 @@ static int t20_syncpt_wait_check(struct nvhost_syncpt *sp,
struct nvmap_client *nvmap,
u32 waitchk_mask,
struct nvhost_waitchk *wait,
- struct nvhost_waitchk *waitend)
+ int num_waitchk)
{
u32 idx;
int err = 0;
@@ -131,10 +131,10 @@ static int t20_syncpt_wait_check(struct nvhost_syncpt *sp,
nvhost_syncpt_update_min(sp, idx);
}
- BUG_ON(!wait && !waitend);
+ BUG_ON(!wait && !num_waitchk);
/* compare syncpt vs wait threshold */
- while (wait != waitend) {
+ while (num_waitchk) {
u32 syncpt, override;
BUG_ON(wait->syncpt_id >= NV_HOST1X_SYNCPT_NB_PTS);
@@ -164,7 +164,9 @@ static int t20_syncpt_wait_check(struct nvhost_syncpt *sp,
if (err)
break;
}
+
wait++;
+ num_waitchk--;
}
return err;
}