aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2020-01-31 13:45:32 +0100
committerGeert Uytterhoeven <[email protected]>2020-02-10 10:57:48 +0100
commit43f0f97dd6f033709079d4346d384160dc3fc68f (patch)
tree3689e14acbd41d348af307bba2030bcfe083bd34
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff)
m68k: mm: Remove stray nocache in ColdFire pgalloc
Since ColdFire V4e is a software TLB-miss architecture, there is no need for page-tables to be mapped uncached. Remove this stray nocache_page() dance, which isn't paired with a cache_page() and looks like a copy/paste/edit fail. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Will Deacon <[email protected]> Acked-by: Greg Ungerer <[email protected]> Tested-by: Michael Schmitz <[email protected]> Tested-by: Greg Ungerer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
-rw-r--r--arch/m68k/include/asm/mcf_pgalloc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/m68k/include/asm/mcf_pgalloc.h b/arch/m68k/include/asm/mcf_pgalloc.h
index 82ec54c2eaa4..cb0e36fb2a60 100644
--- a/arch/m68k/include/asm/mcf_pgalloc.h
+++ b/arch/m68k/include/asm/mcf_pgalloc.h
@@ -55,12 +55,8 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm)
}
pte = kmap(page);
- if (pte) {
+ if (pte)
clear_page(pte);
- __flush_page_to_ram(pte);
- flush_tlb_kernel_page(pte);
- nocache_page(pte);
- }
kunmap(page);
return page;