diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-05-02 10:24:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:31:02 -0400 |
commit | 6b8812eb004ee2b24aac8b1a711a0e8e797df3ce (patch) | |
tree | f92f43c85be518f1ce75bd482d7c60e85a34bf05 | |
parent | a0cdef9e8234cd501d1ad1ea8517136087b3e60f (diff) |
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
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 7b7f4aba60c0..fe36caf1b7d7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |||
@@ -150,7 +150,7 @@ u32 amdgpu_dpm_get_vrefresh(struct amdgpu_device *adev) | |||
150 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 150 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
151 | amdgpu_crtc = to_amdgpu_crtc(crtc); | 151 | amdgpu_crtc = to_amdgpu_crtc(crtc); |
152 | if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { | 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 | break; | 154 | break; |
155 | } | 155 | } |
156 | } | 156 | } |