summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/nohash/32/pte-40x.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-10-09 13:52:14 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-14 18:04:09 +1100
commitcbcbbf4afd6d38272bf0119d890caa5ebba6fe4c (patch)
treec1e36632154145e015b021ba51d1215fb9c7a01e /arch/powerpc/include/asm/nohash/32/pte-40x.h
parenta0da4bc166f21d88400ec91e01b815054561804e (diff)
downloadtalos-op-linux-cbcbbf4afd6d38272bf0119d890caa5ebba6fe4c.tar.gz
talos-op-linux-cbcbbf4afd6d38272bf0119d890caa5ebba6fe4c.zip
powerpc/mm: Define platform default caches related flags
Cache related flags like _PAGE_COHERENT and _PAGE_WRITETHRU are defined on most platforms. The platforms not defining them don't define any alternative. So we can give them a NUL value directly for those platforms directly. Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/nohash/32/pte-40x.h')
-rw-r--r--arch/powerpc/include/asm/nohash/32/pte-40x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/nohash/32/pte-40x.h b/arch/powerpc/include/asm/nohash/32/pte-40x.h
index ab043b3e9b99..7a8b3c94592f 100644
--- a/arch/powerpc/include/asm/nohash/32/pte-40x.h
+++ b/arch/powerpc/include/asm/nohash/32/pte-40x.h
@@ -53,6 +53,9 @@
/* No page size encoding in the linux PTE */
#define _PAGE_PSIZE 0
+/* cache related flags non existing on 40x */
+#define _PAGE_COHERENT 0
+
#define _PAGE_KERNEL_RO 0
#define _PAGE_KERNEL_ROX _PAGE_EXEC
#define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE)
OpenPOWER on IntegriCloud