From: zwl Date: Fri, 29 Aug 2014 09:25:29 +0000 (+0800) Subject: rk312x lcdc: add get frame done time at rk312x_lcdc_isr function X-Git-Tag: firefly_0821_release~4769^2~30 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=606fff53d1909be8ec5bec6ca2e19cd7c18158f7;p=firefly-linux-kernel-4.4.55.git rk312x lcdc: add get frame done time at rk312x_lcdc_isr function --- diff --git a/drivers/video/rockchip/lcdc/rk312x_lcdc.c b/drivers/video/rockchip/lcdc/rk312x_lcdc.c index 995118182a0b..8a89f4b77a80 100755 --- a/drivers/video/rockchip/lcdc/rk312x_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk312x_lcdc.c @@ -87,6 +87,9 @@ static irqreturn_t rk312x_lcdc_isr(int irq, void *dev_id) wake_up_interruptible_all(&lcdc_dev->driver.vsync_info.wait); } else if (int_reg & m_LF_INT_STA) { + lcdc_dev->driver.frame_time.last_framedone_t = + lcdc_dev->driver.frame_time.framedone_t; + lcdc_dev->driver.frame_time.framedone_t = cpu_clock(0); lcdc_msk_reg(lcdc_dev, INT_STATUS, m_LF_INT_CLEAR, v_LF_INT_CLEAR(1)); }