Commit f4f3a126 authored by Kumar Gala's avatar Kumar Gala Committed by Paul Mackerras

powerpc: hash_page_sync should only be used on SMP & STD_MMU_32

Clean up the ifdefs so we only use hash_page_sync if we have
CONFIG_SMP && CONFIG_PPC_STD_MMU_32.
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 4ee5f551
...@@ -48,7 +48,7 @@ EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ ...@@ -48,7 +48,7 @@ EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
extern char etext[], _stext[]; extern char etext[], _stext[];
#ifdef CONFIG_SMP #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32)
extern void hash_page_sync(void); extern void hash_page_sync(void);
#endif #endif
...@@ -127,7 +127,7 @@ pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) ...@@ -127,7 +127,7 @@ pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address)
void pte_free_kernel(struct mm_struct *mm, pte_t *pte) void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
{ {
#ifdef CONFIG_SMP #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32)
hash_page_sync(); hash_page_sync();
#endif #endif
free_page((unsigned long)pte); free_page((unsigned long)pte);
...@@ -135,7 +135,7 @@ void pte_free_kernel(struct mm_struct *mm, pte_t *pte) ...@@ -135,7 +135,7 @@ void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
void pte_free(struct mm_struct *mm, pgtable_t ptepage) void pte_free(struct mm_struct *mm, pgtable_t ptepage)
{ {
#ifdef CONFIG_SMP #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32)
hash_page_sync(); hash_page_sync();
#endif #endif
pgtable_page_dtor(ptepage); pgtable_page_dtor(ptepage);
......
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