MLK-16536-16 video: fbdev: dcss: change 'refcount' to 'struct kref' type
authorFancy Fang <chen.fang@nxp.com>
Fri, 29 Sep 2017 06:36:18 +0000 (14:36 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:42 +0000 (15:38 -0500)
commitbd012f0c2a7bd780bcf3147792e574055a83a2f9
tree524e828d6ed6083d3ad2bc44a7a3314fb1c3d35a
parentf4dc7297ab1f0529d9c76ed040520971e01bf222
MLK-16536-16 video: fbdev: dcss: change 'refcount' to 'struct kref' type

Use 'struct kref' type for 'refcount' field instead of
'atomic_t' to take advantage of 'kref_*()' interface
series. The benefit to do so can improve the defered
cfifo flush performance, since this defered flush does
not need to wait to be done until next vsync happens.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
drivers/video/fbdev/mxc/imx_dcss.c