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>
This commit is contained in:
Dmitry Osipenko 2017-12-20 18:46:14 +03:00 committed by Thierry Reding
parent 04184b1fc9
commit 4c69ac12e3

View File

@ -661,7 +661,8 @@ static int tegra_syncpt_wait(struct drm_device *drm, void *data,
if (!sp) if (!sp)
return -EINVAL; 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); &args->value);
} }