diff options
author | Paul Burton <paul.burton@mips.com> | 2019-08-31 11:41:59 -0400 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-09-03 09:21:04 -0400 |
commit | 3d77a95fc03b8d811ec96b76d7874713192c725a (patch) | |
tree | aef76275965a8956683a24bd1590613b2bf15116 /arch/mips | |
parent | 775b089aeffa98d5f69045d9dc4fe3aaba1bc9e1 (diff) |
MIPS: Drop Loongson _CACHE_* definitions
_CACHE_CACHABLE_NONCOHERENT is defined as 3<<_CACHE_SHIFT by default, so
there's no need to define it as such specifically for Loongson.
_CACHE_CACHABLE_COHERENT is not used anywhere in the kernel, so there's
no need to define it at all.
Finally the comment found alongside these definitions seems incorrect -
it suggests that we're defining _CACHE_CACHABLE_NONCOHERENT such that it
actually provides coherence, but the opposite seems to be true & instead
the unused _CACHE_CACHABLE_COHERENT is defined as the typically
incoherent value.
Delete the whole thing, which will have no effect on the compiled code
anyway.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: linux-mips@vger.kernel.org
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/pgtable-bits.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mips/include/asm/pgtable-bits.h b/arch/mips/include/asm/pgtable-bits.h index 5f1ced8cba07..409ae01ed7be 100644 --- a/arch/mips/include/asm/pgtable-bits.h +++ b/arch/mips/include/asm/pgtable-bits.h | |||
@@ -221,13 +221,6 @@ static inline uint64_t pte_to_entrylo(unsigned long pte_val) | |||
221 | 221 | ||
222 | #define _CACHE_CACHABLE_NONCOHERENT (5<<_CACHE_SHIFT) | 222 | #define _CACHE_CACHABLE_NONCOHERENT (5<<_CACHE_SHIFT) |
223 | 223 | ||
224 | #elif defined(CONFIG_CPU_LOONGSON3) | ||
225 | |||
226 | /* Using COHERENT flag for NONCOHERENT doesn't hurt. */ | ||
227 | |||
228 | #define _CACHE_CACHABLE_NONCOHERENT (3<<_CACHE_SHIFT) /* LOONGSON */ | ||
229 | #define _CACHE_CACHABLE_COHERENT (3<<_CACHE_SHIFT) /* LOONGSON-3 */ | ||
230 | |||
231 | #elif defined(CONFIG_MACH_INGENIC) | 224 | #elif defined(CONFIG_MACH_INGENIC) |
232 | 225 | ||
233 | /* Ingenic uses the WA bit to achieve write-combine memory writes */ | 226 | /* Ingenic uses the WA bit to achieve write-combine memory writes */ |