Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -1
+1 -1
drivers/gpu/drm/radeon/r600_dpm.c
··· 188 188 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { 189 189 radeon_crtc = to_radeon_crtc(crtc); 190 190 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); 192 192 break; 193 193 } 194 194 }