Skip to content

Commit

Permalink
Video: allocate uncached buffers as writecombined (Dima Zavin)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeDrOiD committed May 15, 2011
1 parent 045ef8c commit 9bc5900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/msm/gpu/kgsl_adreno205/kgsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)
result = -EINVAL;
goto done;
}
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);

result = remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
vma_size, vma->vm_page_prot);
Expand Down

0 comments on commit 9bc5900

Please sign in to comment.