diff options
author | Dhinakaran Pandiyan <[email protected]> | 2018-02-02 21:12:56 -0800 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2018-02-15 11:49:35 -0800 |
commit | 23effc1100975a36953255c1db737f18adf8dd0d (patch) | |
tree | ebef9e3337d8638ec487bc5fe337e0c5549cda51 /tools/perf/scripts/python/sched-migration.py | |
parent | 1b29b7ca7d43be309d399c996910c04a8ba0c195 (diff) |
drm/amdgpu: Handle 64-bit return from drm_crtc_vblank_count()
570e86963a51 ("drm: Widen vblank count to 64-bits [v3]") changed the
return type for drm_crtc_vblank_count() to u64. This could cause
potential problems if the return value is used in arithmetic operations
with a 32-bit reference HW vblank count. Explicitly typecasting this down
to u32 either fixes a potential problem or serves to add clarity in case
the typecasting was implicitly done.
Cc: Keith Packard <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Harry Wentland <[email protected]>
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
Reviewed-by: Keith Packard <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Acked-by: Alex Deucher <[email protected]> for both this patch
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions