diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2017-12-20 10:46:14 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-12-21 08:52:39 -0500 |
commit | 4c69ac12e39d3d623686d1c421b05d604e1c6db9 (patch) | |
tree | 4db1a96aa23c8ae11f5441fe752e17c66f9c1df8 | |
parent | 04184b1fc990ac67777392be87e020e4f1af185c (diff) |
drm/tegra: Correct timeout in tegra_syncpt_wait
host1x_syncpt_wait() takes timeout value in jiffies, but DRM passes it in
milliseconds.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 52468f669277..ff931d3508a9 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c | |||
@@ -661,7 +661,8 @@ static int tegra_syncpt_wait(struct drm_device *drm, void *data, | |||
661 | if (!sp) | 661 | if (!sp) |
662 | return -EINVAL; | 662 | return -EINVAL; |
663 | 663 | ||
664 | return host1x_syncpt_wait(sp, args->thresh, args->timeout, | 664 | return host1x_syncpt_wait(sp, args->thresh, |
665 | msecs_to_jiffies(args->timeout), | ||
665 | &args->value); | 666 | &args->value); |
666 | } | 667 | } |
667 | 668 | ||