summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2010-12-13 17:36:38 +0800
committerRobby Cai <R63905@freescale.com>2010-12-13 17:45:22 +0800
commit3862b1becab6968996a605845ca2e827273903f1 (patch)
tree64dce9b198e6a6504271bd27d5693d52d7b238d3
parente595caa10fa849727280f4052d74536ba8fd0b39 (diff)
ENGR00136875-2 make video buffer cacheable to improve video performance
Use pgprot_writethru() instead of pgprot_noncached() Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--drivers/media/video/videobuf-dma-contig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c
index 3d9a6aa00420..f57db6034a25 100644
--- a/drivers/media/video/videobuf-dma-contig.c
+++ b/drivers/media/video/videobuf-dma-contig.c
@@ -306,7 +306,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
size = vma->vm_end - vma->vm_start;
size = (size < mem->size) ? size : mem->size;
- vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+ vma->vm_page_prot = pgprot_writethru(vma->vm_page_prot);
retval = remap_pfn_range(vma, vma->vm_start,
mem->dma_handle >> PAGE_SHIFT,
size, vma->vm_page_prot);