media: vb2-dma-contig: add a hack to speed up cache management
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 22 Apr 2014 11:14:08 +0000 (13:14 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:30 +0000 (11:47 +0900)
commitcebd0b9130e45fd4535490c2161a0d4ccac1ada3
treed3a82ffd91bb959fc9f632a1b93d62c0c8321140
parent930d6b139eb2e55848b59f3e9b67f1d27811fd45
media: vb2-dma-contig: add a hack to speed up cache management

In most cases video processing is done with coherent (non-cachable) userspace mappings. In such case for USERPTR mode cache management can
be skipped. This patch introduces code for such optimisation. It is called
a hack, because it is not possible in generic way to detect if the
given userspace mapping is coherent on not.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-id: I86aa292455371f1b18eb3f6b765234dc04ff937b
drivers/media/v4l2-core/videobuf2-dma-contig.c