projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c70c3
)
rk fb: modify get_prmry_screen_ft in case ft is zero
author
zwl
<zwl@rock-chips.com>
Thu, 19 Jun 2014 13:05:45 +0000
(21:05 +0800)
committer
zwl
<zwl@rock-chips.com>
Thu, 19 Jun 2014 13:07:11 +0000
(21:07 +0800)
drivers/video/rockchip/rk_fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_fb.c
b/drivers/video/rockchip/rk_fb.c
index ece4d7c6111c7b1cd2814b8be9e242126f30c612..1713adda87b4c0b93ea4e8b2711413a169d368aa 100755
(executable)
--- a/
drivers/video/rockchip/rk_fb.c
+++ b/
drivers/video/rockchip/rk_fb.c
@@
-525,7
+525,10
@@
u32 rk_fb_get_prmry_screen_ft(void)
ft_us = dev_drv->frame_time.framedone_t - dev_drv->frame_time.last_framedone_t;
do_div(ft_us, 1000);
- dev_drv->frame_time.ft = min(dev_drv->frame_time.ft, (u32)ft_us);
+ ft_us = min(dev_drv->frame_time.ft, (u32)ft_us);
+ if (ft_us != 0)
+ dev_drv->frame_time.ft = ft_us;
+
return dev_drv->frame_time.ft;
}