aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mmu_context_64.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-08-15 16:51:18 +1000
committerPaul Mackerras <paulus@samba.org>2007-08-17 11:01:59 +1000
commite8ff0646e5df850ff084be9c97a2e69fff5697b4 (patch)
tree42a5630bb518337e16d016aacdd783b39fce6122 /arch/powerpc/mm/mmu_context_64.c
parent[POWERPC] Remove get_property and device_is_compatible (diff)
downloadlinux-dev-e8ff0646e5df850ff084be9c97a2e69fff5697b4.tar.xz
linux-dev-e8ff0646e5df850ff084be9c97a2e69fff5697b4.zip
[POWERPC] Tidy up CONFIG_PPC_MM_SLICES code
This removes some of the #ifdefs from .c files. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/mmu_context_64.c')
-rw-r--r--arch/powerpc/mm/mmu_context_64.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/mm/mmu_context_64.c b/arch/powerpc/mm/mmu_context_64.c
index 901ea765f146..1db38ba1f544 100644
--- a/arch/powerpc/mm/mmu_context_64.c
+++ b/arch/powerpc/mm/mmu_context_64.c
@@ -49,18 +49,12 @@ again:
return -ENOMEM;
}
-#ifdef CONFIG_PPC_MM_SLICES
/* The old code would re-promote on fork, we don't do that
* when using slices as it could cause problem promoting slices
* that have been forced down to 4K
*/
- if (mm->context.id == 0)
+ if (slice_mm_new_context(mm))
slice_set_user_psize(mm, mmu_virtual_psize);
-#else
- mm->context.user_psize = mmu_virtual_psize;
- mm->context.sllp = SLB_VSID_USER |
- mmu_psize_defs[mmu_virtual_psize].sllp;
-#endif
mm->context.id = index;
return 0;