summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson2ef
diff options
context:
space:
mode:
authorYanteng Si <siyanteng@loongson.cn>2021-01-27 03:38:05 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-01-27 21:51:15 +0100
commitc4cbe3fb1c6f03d2295d15d089c3f6e9ddd94db6 (patch)
tree25a35a64db3e31e6476a014cd87cea646e462055 /arch/mips/loongson2ef
parentMIPS: asm: spram: remove unneeded semicolon (diff)
downloadlinux-c4cbe3fb1c6f03d2295d15d089c3f6e9ddd94db6.tar.xz
linux-c4cbe3fb1c6f03d2295d15d089c3f6e9ddd94db6.zip
MIPS: loongson2ef: remove function __uncached_access()
We no longer need the MESA workaround, so remove it. Signed-off-by: Yanteng Si <siyanteng@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/loongson2ef')
-rw-r--r--arch/mips/loongson2ef/common/mem.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/mips/loongson2ef/common/mem.c b/arch/mips/loongson2ef/common/mem.c
index 057d58bb470e..fceb3ee47eb0 100644
--- a/arch/mips/loongson2ef/common/mem.c
+++ b/arch/mips/loongson2ef/common/mem.c
@@ -41,14 +41,3 @@ void __init prom_init_memory(void)
memblock_add(LOONGSON_HIGHMEM_START, highmemsize << 20);
#endif /* !CONFIG_64BIT */
}
-
-/* override of arch/mips/mm/cache.c: __uncached_access */
-int __uncached_access(struct file *file, unsigned long addr)
-{
- if (file->f_flags & O_DSYNC)
- return 1;
-
- return addr >= __pa(high_memory) ||
- ((addr >= LOONGSON_MMIO_MEM_START) &&
- (addr < LOONGSON_MMIO_MEM_END));
-}