MIPS: loongson2ef: remove function __uncached_access()
Subsystems (3)
PATCH v3 1/2 MIPS: loongson2ef: remove function __uncached_access()
we no longer need the MESA workaround (which shouldn't be there in the first place, IMHO)
Signed-off-by Yanteng Si <[email protected]>
--- arch/mips/loongson2ef/common/mem.c | 11 ----------- 1 file changed, 11 deletions(-)
arch/mips/loongson2ef/common/mem.c +0 -11
@@ -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 )); -}
Signature · 1 line
2.27.0
PATCH v3 2/2 MIPS: mm:remove function __uncached_access()
MIPS can now use the default uncached_access like other archs.
Signed-off-by Yanteng Si <[email protected]>
--- arch/mips/mm/cache.c | 8 -------- drivers/char/mem.c | 7 ------- 2 files changed, 15 deletions(-)
arch/mips/mm/cache.c +0 -8
@@ -207,11 +207,3 @@ void cpu_cache_init(void)setup_protection_map (); } - -int __weak __uncached_access (struct file *file,unsigned long addr) -{ -if (file->f_flags &O_DSYNC ) -return 1 ; - -return addr >=__pa (high_memory); -}
drivers/char/mem.c +0 -7
@@ -291,13 +291,6 @@ static int uncached_access(struct file *file, phys_addr_t addr)* attribute aliases. */ return !(efi_mem_attributes (addr) &EFI_MEMORY_WB ); -#elif defined(CONFIG_MIPS ) - { -extern int __uncached_access (struct file *file, -unsigned long addr); - -return __uncached_access (file, addr); - }#else /* * Accessing memory above the top the kernel knows about or through a
Signature · 1 line
2.27.0
Re: [PATCH v3 2/2] MIPS: mm:remove function __uncached_access()
Quoted 8 lines · Yanteng Si
MIPS can now use the default
uncached_accesslike other archs.Signed-off-by Yanteng Si <[email protected]>--- arch/mips/mm/cache.c | 8 -------- drivers/char/mem.c | 7 ------- 2 files changed, 15 deletions(-)
Re: [PATCH v3 2/2] MIPS: mm:remove function __uncached_access()
In reply to Yanteng SiQuoted 7 lines · Yanteng Si
MIPS can now use the default
uncached_accesslike other archs.Signed-off-by Yanteng Si <[email protected]>--- arch/mips/mm/cache.c | 8 -------- drivers/char/mem.c | 7 ------- 2 files changed, 15 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
Quoted 7 lines · Yanteng Si
we no longer need the MESA workaround (which shouldn't be there in the first place, IMHO)
Signed-off-by Yanteng Si <[email protected]>--- arch/mips/loongson2ef/common/mem.c | 11 ----------- 1 file changed, 11 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]