summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-12-11 08:06:35 +0100
committerDave Airlie <airlied@linux.ie>2008-12-29 08:47:24 +0100
commitae14dc0505261978ca06075ac39cc5422c6c6b57 (patch)
treee84f4ccfbb9b102dbdfb6513a3192e81eff798aa
parentdrm: pick an 800x600@60HZ mode by default for unknown CRT. (diff)
downloadlinux-ae14dc0505261978ca06075ac39cc5422c6c6b57.tar.xz
linux-ae14dc0505261978ca06075ac39cc5422c6c6b57.zip
drm: PAGE_CACHE_WC is x86 only so far
The page protections need to be checked whether they need to be more flexible. Signed-off-by: Dave Airlie <airlied@redhat.com>
-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)
vma->vm_private_data = map->handle;
/* FIXME: use pgprot_writecombine when available */
prot = pgprot_val(vma->vm_page_prot);
+#ifdef CONFIG_X86
prot |= _PAGE_CACHE_WC;
+#endif
vma->vm_page_prot = __pgprot(prot);
vma->vm_file = filp; /* Needed for drm_vm_open() */