aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/pgtable_32.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-12-14 14:44:51 -0500
committerPaul Mackerras <paulus@samba.org>2008-12-15 23:53:34 -0500
commitf63837f0581fe580168ae1a7d178ded935411747 (patch)
treeea4956ae770193ad2d18f5be599df44014419577 /arch/powerpc/mm/pgtable_32.c
parente41e811a79a4e328005be2744c3076ebde455088 (diff)
powerpc/mm: Remove flush_HPTE()
The function flush_HPTE() is used in only one place, the implementation of DEBUG_PAGEALLOC on ppc32. It's actually a dup of flush_tlb_page() though it's -slightly- more efficient on hash based processors. We remove it and replace it by a direct call to the hash flush code on those processors and to flush_tlb_page() for everybody else. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/pgtable_32.c')
-rw-r--r--arch/powerpc/mm/pgtable_32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c
index c7b755cba26a..341472440137 100644
--- a/arch/powerpc/mm/pgtable_32.c
+++ b/arch/powerpc/mm/pgtable_32.c
@@ -342,7 +342,11 @@ static int __change_page_attr(struct page *page, pgprot_t prot)
342 return -EINVAL; 342 return -EINVAL;
343 set_pte_at(&init_mm, address, kpte, mk_pte(page, prot)); 343 set_pte_at(&init_mm, address, kpte, mk_pte(page, prot));
344 wmb(); 344 wmb();
345 flush_HPTE(0, address, pmd_val(*kpmd)); 345#ifdef CONFIG_PPC_STD_MMU
346 flush_hash_pages(0, address, pmd_val(*kpmd), 1);
347#else
348 flush_tlb_page(NULL, address);
349#endif
346 pte_unmap(kpte); 350 pte_unmap(kpte);
347 351
348 return 0; 352 return 0;