powerpc/4xx: Extended DCR support v2
[deliverable/linux.git] / arch / powerpc / mm / mmu_context_64.c
index e2051efa09c58d413d95814615c94f2d683b8b22..1db38ba1f544e003a40c48a9b5652834bfa4bf27 100644 (file)
@@ -10,7 +10,6 @@
  *
  */
 
-#include <linux/config.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
@@ -50,10 +49,13 @@ again:
                return -ENOMEM;
        }
 
+       /* 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 (slice_mm_new_context(mm))
+               slice_set_user_psize(mm, mmu_virtual_psize);
        mm->context.id = index;
-       mm->context.user_psize = mmu_virtual_psize;
-       mm->context.sllp = SLB_VSID_USER |
-               mmu_psize_defs[mmu_virtual_psize].sllp;
 
        return 0;
 }
This page took 0.025356 seconds and 5 git commands to generate.