diff options
author | Anton Blanchard <anton@samba.org> | 2011-02-28 20:00:47 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-03-02 16:50:24 +1100 |
commit | fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7 (patch) | |
tree | 05e442859ea1d90fff71717bc3493f1997663437 /arch | |
parent | a9d8946b4af9e003c645ffb46489fdeb154e7ed9 (diff) | |
download | op-kernel-dev-fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7.zip op-kernel-dev-fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7.tar.gz |
powerpc: Add pgprot_writecombine
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/pgtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 89f1587..88b0bd9 100644 --- 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, |