From b2febfa69273f7f5c3eb8db1b305c261189216be Mon Sep 17 00:00:00 2001 From: Robby Cai Date: Fri, 7 Aug 2009 15:28:14 +0800 Subject: [PATCH] ENGR00114911 make video buffer cacheable to improve video performance use pgprot_writethru instead 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 c9691115f2d2..669f4ae8fa97 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c @@ -298,7 +298,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); -- 2.39.5