mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
a9d8946b4a
commit
fe3cc0d99d
1 changed files with 1 additions and 0 deletions
|
@ -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) | \
|
#define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
|
||||||
_PAGE_COHERENT | _PAGE_WRITETHRU))
|
_PAGE_COHERENT | _PAGE_WRITETHRU))
|
||||||
|
|
||||||
|
#define pgprot_writecombine pgprot_noncached_wc
|
||||||
|
|
||||||
struct file;
|
struct file;
|
||||||
extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
|
extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
|
||||||
|
|
Loading…
Reference in a new issue