mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: vvop: Enable hrtimer for vblank simulate
Start hrtimer when enable vblank. Change-Id: If0f914e8da61f811347e3dabdaf8630e7aa92cb7 Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
@@ -121,7 +121,7 @@ static int vvop_enable_vblank(struct drm_crtc *crtc)
|
||||
|
||||
hrtimer_init(&vvop->vblank_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
vvop->vblank_hrtimer.function = &vvop_vblank_simulate;
|
||||
vvop->period_ns = ktime_set(-1, vblank->framedur_ns);
|
||||
vvop->period_ns = ktime_set(0, vblank->framedur_ns);
|
||||
hrtimer_start(&vvop->vblank_hrtimer, vvop->period_ns, HRTIMER_MODE_REL);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user