Skip to content

Commit 7b1fcda

Browse files
alexdeuchersashalevin
authored andcommitted
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
commit 3d2d98e upstream. Just in case it hasn't been calculated for the mode. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8144751 commit 7b1fcda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/radeon/r600_dpm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ u32 r600_dpm_get_vrefresh(struct radeon_device *rdev)
188188
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
189189
radeon_crtc = to_radeon_crtc(crtc);
190190
if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) {
191-
vrefresh = radeon_crtc->hw_mode.vrefresh;
191+
vrefresh = drm_mode_vrefresh(&radeon_crtc->hw_mode);
192192
break;
193193
}
194194
}

0 commit comments

Comments
 (0)