aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
-rw-r--r--drivers/gpu/drm/drm_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index b3939de6affd..9da581452874 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -516,7 +516,9 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
516 vma->vm_private_data = map->handle; 516 vma->vm_private_data = map->handle;
517 /* FIXME: use pgprot_writecombine when available */ 517 /* FIXME: use pgprot_writecombine when available */
518 prot = pgprot_val(vma->vm_page_prot); 518 prot = pgprot_val(vma->vm_page_prot);
519#ifdef CONFIG_X86
519 prot |= _PAGE_CACHE_WC; 520 prot |= _PAGE_CACHE_WC;
521#endif
520 vma->vm_page_prot = __pgprot(prot); 522 vma->vm_page_prot = __pgprot(prot);
521 523
522 vma->vm_file = filp; /* Needed for drm_vm_open() */ 524 vma->vm_file = filp; /* Needed for drm_vm_open() */