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

drm/amdgpu: use drm_mode_vrefresh() rather than mode->vrefresh

This is a port of radeon commit:
3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
to amdgpu.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
··· 150 150 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { 151 151 amdgpu_crtc = to_amdgpu_crtc(crtc); 152 152 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { 153 - vrefresh = amdgpu_crtc->hw_mode.vrefresh; 153 + vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); 154 154 break; 155 155 } 156 156 }