Skip to content

Commit

Permalink
drm/tegra: Correct timeout in tegra_syncpt_wait
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Osipenko authored and Thierry Reding committed Dec 21, 2017
1 parent 04184b1 commit 4c69ac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/tegra/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ static int tegra_syncpt_wait(struct drm_device *drm, void *data,
if (!sp)
return -EINVAL;

return host1x_syncpt_wait(sp, args->thresh, args->timeout,
return host1x_syncpt_wait(sp, args->thresh,
msecs_to_jiffies(args->timeout),
&args->value);
}

Expand Down

0 comments on commit 4c69ac1

Please sign in to comment.