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)
commit19a2e1e36a2b14d7549a6d9584be131f4286f757
treebdfd8e08d9dce23659fec7656e47d98dc6029a91
parent30ffa74a04b6e48080f3181b29d2693b8486ca1e
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