summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pte-common.h
diff options
context:
space:
mode:
authorChristophe Leroy2018-10-09 15:52:14 +0200
committerMichael Ellerman2018-10-14 09:04:09 +0200
commitcbcbbf4afd6d38272bf0119d890caa5ebba6fe4c (patch)
treec1e36632154145e015b021ba51d1215fb9c7a01e /arch/powerpc/include/asm/pte-common.h
parentpowerpc/mm: Allow platforms to redefine some helpers (diff)
downloadkernel-qcow2-linux-cbcbbf4afd6d38272bf0119d890caa5ebba6fe4c.tar.gz
kernel-qcow2-linux-cbcbbf4afd6d38272bf0119d890caa5ebba6fe4c.tar.xz
kernel-qcow2-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/pte-common.h')
-rw-r--r--arch/powerpc/include/asm/pte-common.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/include/asm/pte-common.h b/arch/powerpc/include/asm/pte-common.h
index 1a2102f8b1e7..ff01368a175a 100644
--- a/arch/powerpc/include/asm/pte-common.h
+++ b/arch/powerpc/include/asm/pte-common.h
@@ -1,17 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* Included from asm/pgtable-*.h only ! */
-/*
- * Some bits are only used on some cpu families... Make sure that all
- * the undefined gets a sensible default
- */
-#ifndef _PAGE_COHERENT
-#define _PAGE_COHERENT 0
-#endif
-#ifndef _PAGE_WRITETHRU
-#define _PAGE_WRITETHRU 0
-#endif
-
/* Location of the PFN in the PTE. Most 32-bit platforms use the same
* as _PAGE_SHIFT here (ie, naturally aligned).
* Platform who don't just pre-define the value so we don't override it here