]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix inconsistent timestamp type
authorAngus Wang <Angus.Wang@amd.com>
Thu, 31 Mar 2022 13:33:10 +0000 (09:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Apr 2022 18:19:51 +0000 (14:19 -0400)
commit2c76ac562c1ef3e3671c9fb7f6075094e1428e6a
treebdfd8e08d9dce23659fec7656e47d98dc6029a91
parenta1a597c2ea477eb3d1ca2b0a15989cca2bec4f40
drm/amd/display: Fix inconsistent timestamp type

[WHY]
An unsigned int timestamp variable is assigned with an unsigned
long long value. Also, the assignment directly converts the
tick value to us without using built-in get elapsed time function.

[HOW]
Cast the assigned value correctly and also use built-in function
to get the timestamp in the unit we want.

v2: squash in 64 bit division fix

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Angus Wang <Angus.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c