diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-07-08 11:26:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-07-08 17:40:09 -0400 |
commit | 66edc1c95d75d66b11f1d2e2332c0c27b3f89a77 (patch) | |
tree | 920848d72cf0423a0d72eac7a84528d090fbbcdd /drivers/gpu/drm/radeon/atombios_crtc.c | |
parent | 7e1f3c0419b0be9f20e08848ab23221a6dc3d77e (diff) |
drm/radeon/dpm: add helper to calculate vblank time
Required for checking vblank time for mclk changes.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_crtc.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index c7ad4b93085..b9d3b43f19c 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c @@ -1841,6 +1841,9 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc, atombios_crtc_set_base(crtc, x, y, old_fb); atombios_overscan_setup(crtc, mode, adjusted_mode); atombios_scaler_setup(crtc); + /* update the hw version fpr dpm */ + radeon_crtc->hw_mode = *adjusted_mode; + return 0; } |