projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9d8946
)
powerpc: Add pgprot_writecombine
author
Anton Blanchard
<anton@samba.org>
Mon, 28 Feb 2011 20:00:47 +0000
(20:00 +0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Wed, 2 Mar 2011 05:50:24 +0000
(16:50 +1100)
A number of drivers are using pgprot_writecombine() to enable write
combining on userspace mappings. Implement it on powerpc.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/pgtable.h
b/arch/powerpc/include/asm/pgtable.h
index 89f158731ce37311b35225a43963b05227bf62c1..88b0bd925a8bbc0264106e114854f181024a06fd 100644
(file)
--- a/
arch/powerpc/include/asm/pgtable.h
+++ b/
arch/powerpc/include/asm/pgtable.h
@@
-170,6
+170,7
@@
extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long addre
#define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
_PAGE_COHERENT | _PAGE_WRITETHRU))
+#define pgprot_writecombine pgprot_noncached_wc
struct file;
extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,