diff options
| author | Aric Cyr <[email protected]> | 2019-08-29 15:53:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-02-22 15:26:15 +0000 |
| commit | 14d68acfd04b39f34eea7bea65dda652e6db5bf6 (patch) | |
| tree | 61d0e682b5e1e15bc02f00eea74b4b0b6dfef94d | |
| parent | drm/amd/display: Drop unnecessary header (diff) | |
| download | kernel-14d68acfd04b39f34eea7bea65dda652e6db5bf6.tar.gz kernel-14d68acfd04b39f34eea7bea65dda652e6db5bf6.zip | |
drm/amd/display: Fix nanosec stat overflow
[Why]
Nanosec stats can overflow on long running systems potentially causing
statistic logging issues.
[How]
Use 64bit types for nanosec stats to ensure no overflow.
Reviewed-by: Rodrigo Siqueira <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Aric Cyr <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/display/modules/inc/mod_stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h index 5960dd760e91..8ce6c22e5d04 100644 --- a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h +++ b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h @@ -57,10 +57,10 @@ void mod_stats_update_event(struct mod_stats *mod_stats, unsigned int length); void mod_stats_update_flip(struct mod_stats *mod_stats, - unsigned long timestamp_in_ns); + unsigned long long timestamp_in_ns); void mod_stats_update_vupdate(struct mod_stats *mod_stats, - unsigned long timestamp_in_ns); + unsigned long long timestamp_in_ns); void mod_stats_update_freesync(struct mod_stats *mod_stats, unsigned int v_total_min, |
