mirror_ubuntu-kernels/drivers/gpu/drm/amd
Angus Wang 19a2e1e36a 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>
2022-04-12 14:19:51 -04:00
..
acp
amdgpu drm/amdgpu: add umc query error status function 2022-04-11 13:50:35 -04:00
amdkfd drm/amdkfd: Handle drain retry fault race with XNACK mode change 2022-04-11 13:50:35 -04:00
display drm/amd/display: Fix inconsistent timestamp type 2022-04-12 14:19:51 -04:00
include drm/amdgpu: Use flexible array member 2022-04-11 13:50:35 -04:00
pm drm/amdgpu: expand cg_flags from u32 to u64 2022-04-08 17:24:24 -04:00