diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-04-12 03:42:31 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-21 21:08:47 +1000 |
commit | f855b2f544d664cfa3055edb7ffd20e9ae0e2dce (patch) | |
tree | 6c380d6317c333a60420ea48e3d383c3afc0298d /arch/powerpc/include/asm/io.h | |
parent | a050d20d024dc3e1b988e715e2d811aaa3d5c39c (diff) | |
download | op-kernel-dev-f855b2f544d664cfa3055edb7ffd20e9ae0e2dce.zip op-kernel-dev-f855b2f544d664cfa3055edb7ffd20e9ae0e2dce.tar.gz |
powerpc/mm: Wire up ioremap_cache()
The default implementation of ioremap_cache() is aliased to ioremap().
On powerpc ioremap() creates cache-inhibited mappings by default which
is almost certainly not what you wanted.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/io.h')
-rw-r--r-- | arch/powerpc/include/asm/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index c398e86..422f99c 100644 --- a/arch/powerpc/include/asm/io.h +++ b/arch/powerpc/include/asm/io.h @@ -759,6 +759,8 @@ extern void __iomem *ioremap_prot(phys_addr_t address, unsigned long size, extern void __iomem *ioremap_wc(phys_addr_t address, unsigned long size); #define ioremap_nocache(addr, size) ioremap((addr), (size)) #define ioremap_uc(addr, size) ioremap((addr), (size)) +#define ioremap_cache(addr, size) \ + ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL)) extern void iounmap(volatile void __iomem *addr); |