]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/tmr: fix nvkm_usec/nvkm_msec definitions
authorTimur Tabi <ttabi@nvidia.com>
Tue, 9 Jun 2020 12:52:03 +0000 (07:52 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:47 +0000 (18:50 +1000)
commit476de8ee6fb437f136bfaa4d660b3d1f49ad7ae8
treebea665ff823e4409c0407ec041dde09fbb4082f0
parent2d0dea3ea2a773285b1d30f37f94a8b9e8a8d8e9
drm/nouveau/tmr: fix nvkm_usec/nvkm_msec definitions

nvkm_timer_wait_init() takes a u64 as a duration parameter, but the
expression "(m) * 1000" will be promoted only to a 32-bit integer,
if 'm' is also an integer.  Changing the 1000 to 1000ULL ensures that
the expression will be 64 bits.

This change currently has no effect as there are no callers of
nvkm_msec() that exceed 2000ms.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h