diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-11-19 00:53:04 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-03 04:46:35 -0500 |
commit | f4f3a1261ad70988ad45614ebc87e553143a332b (patch) | |
tree | 8db34850f795712bcee34cf97fc7ce5eec1a3d4b | |
parent | 4ee5f55175a85fc179c93f00dd7f6a99c896f4d6 (diff) |
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: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index c31d6d26f0b5..44fbc81c9b2c 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -48,7 +48,7 @@ EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ | |||
48 | 48 | ||
49 | extern char etext[], _stext[]; | 49 | extern char etext[], _stext[]; |
50 | 50 | ||
51 | #ifdef CONFIG_SMP | 51 | #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32) |
52 | extern void hash_page_sync(void); | 52 | extern void hash_page_sync(void); |
53 | #endif | 53 | #endif |
54 | 54 | ||
@@ -127,7 +127,7 @@ pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) | |||
127 | 127 | ||
128 | void pte_free_kernel(struct mm_struct *mm, pte_t *pte) | 128 | void pte_free_kernel(struct mm_struct *mm, pte_t *pte) |
129 | { | 129 | { |
130 | #ifdef CONFIG_SMP | 130 | #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32) |
131 | hash_page_sync(); | 131 | hash_page_sync(); |
132 | #endif | 132 | #endif |
133 | free_page((unsigned long)pte); | 133 | free_page((unsigned long)pte); |
@@ -135,7 +135,7 @@ void pte_free_kernel(struct mm_struct *mm, pte_t *pte) | |||
135 | 135 | ||
136 | void pte_free(struct mm_struct *mm, pgtable_t ptepage) | 136 | void pte_free(struct mm_struct *mm, pgtable_t ptepage) |
137 | { | 137 | { |
138 | #ifdef CONFIG_SMP | 138 | #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_32) |
139 | hash_page_sync(); | 139 | hash_page_sync(); |
140 | #endif | 140 | #endif |
141 | pgtable_page_dtor(ptepage); | 141 | pgtable_page_dtor(ptepage); |