From: Robby Cai Date: Fri, 7 Aug 2009 07:28:14 +0000 (+0800) Subject: ENGR00114911 make video buffer cacheable to improve video performance X-Git-Tag: v3.0.35-fsl~2499 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b2febfa69273f7f5c3eb8db1b305c261189216be;p=karo-tx-linux.git ENGR00114911 make video buffer cacheable to improve video performance use pgprot_writethru instead Signed-off-by: Robby Cai --- 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);