From 3862b1becab6968996a605845ca2e827273903f1 Mon Sep 17 00:00:00 2001 From: Robby Cai Date: Mon, 13 Dec 2010 17:36:38 +0800 Subject: ENGR00136875-2 make video buffer cacheable to improve video performance Use pgprot_writethru() instead of pgprot_noncached() Signed-off-by: Robby Cai --- drivers/media/video/videobuf-dma-contig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3