[COMMON] media: smfc: invalid the cache lines as little as possible
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 14 Sep 2015 15:53:57 +0000 (00:53 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:31:14 +0000 (14:31 +0900)
commitcf94f7f006ed1bbd791636548b3ea4dd66a64d4a
tree476e3d97764e7f90841f497e68024cf13da7bda4
parent29fce1890b4a331c433a12f31468609e2e0aa12c
[COMMON] media: smfc: invalid the cache lines as little as possible

The amount of data to invalidate CPU cache lines of the destination
buffer of the JPEG compression is much smaller than the length of
the destination buffer because the userspace tends to qbuf the buffer
that is large enough to store the uncompressed image.
Therefore, the data amount of invaidation on the destination buffer
needs to be less than the buffer size for less delay in cache
invalidation and vb2_ion_buf_finish_exact() is for that purpose.

Change-Id: Ifc069a3e940f4e470a2947dc249704340cbe5abb
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c