projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc/mm: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED
[deliverable/linux.git]
/
drivers
/
video
/
controlfb.c
diff --git
a/drivers/video/controlfb.c
b/drivers/video/controlfb.c
index b0be7eac32d817c8cec0255374ae80ab87483d87..49fcbe8f18ac4dbbd958f5e1973be85dda2875ae 100644
(file)
--- a/
drivers/video/controlfb.c
+++ b/
drivers/video/controlfb.c
@@
-298,10
+298,10
@@
static int controlfb_mmap(struct fb_info *info,
return -EINVAL;
start = info->fix.mmio_start;
len = PAGE_ALIGN((start & ~PAGE_MASK)+info->fix.mmio_len);
return -EINVAL;
start = info->fix.mmio_start;
len = PAGE_ALIGN((start & ~PAGE_MASK)+info->fix.mmio_len);
-
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED
;
+
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot)
;
} else {
/* framebuffer */
} else {
/* framebuffer */
-
pgprot_val(vma->vm_page_prot) |= _PAGE_WRITETHRU
;
+
vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot)
;
}
start &= PAGE_MASK;
if ((vma->vm_end - vma->vm_start + off) > len)
}
start &= PAGE_MASK;
if ((vma->vm_end - vma->vm_start + off) > len)
This page took
0.025288 seconds
and
5
git commands to generate.