Commit 43f0f97d authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Geert Uytterhoeven

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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarWill Deacon <will@kernel.org>
Acked-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
Tested-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Tested-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
Link: https://lore.kernel.org/r/20200131125403.481739981@infradead.orgSigned-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent bb6d3fb3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment