drm/amd/display: Use non-deprecated vblank handler
[Why] drm_handle_vblank is deprecated. Use drm_crtc_handle_vblank instead. Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> Reviewed-by: David Francis <David.Francis@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
58382a445b
commit
e5d0170e56
|
@ -311,16 +311,14 @@ static void dm_crtc_high_irq(void *interrupt_params)
|
||||||
{
|
{
|
||||||
struct common_irq_params *irq_params = interrupt_params;
|
struct common_irq_params *irq_params = interrupt_params;
|
||||||
struct amdgpu_device *adev = irq_params->adev;
|
struct amdgpu_device *adev = irq_params->adev;
|
||||||
uint8_t crtc_index = 0;
|
|
||||||
struct amdgpu_crtc *acrtc;
|
struct amdgpu_crtc *acrtc;
|
||||||
|
|
||||||
acrtc = get_crtc_by_otg_inst(adev, irq_params->irq_src - IRQ_TYPE_VBLANK);
|
acrtc = get_crtc_by_otg_inst(adev, irq_params->irq_src - IRQ_TYPE_VBLANK);
|
||||||
|
|
||||||
if (acrtc)
|
if (acrtc) {
|
||||||
crtc_index = acrtc->crtc_id;
|
drm_crtc_handle_vblank(&acrtc->base);
|
||||||
|
amdgpu_dm_crtc_handle_crc_irq(&acrtc->base);
|
||||||
drm_handle_vblank(adev->ddev, crtc_index);
|
}
|
||||||
amdgpu_dm_crtc_handle_crc_irq(&acrtc->base);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dm_set_clockgating_state(void *handle,
|
static int dm_set_clockgating_state(void *handle,
|
||||||
|
|
Loading…
Reference in New Issue