Skip to content

Commit 3d2d98e

Browse files
committed
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
Just in case it hasn't been calculated for the mode. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 7a26f9a commit 3d2d98e

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)