aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slb.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-10-28 15:54:06 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-19 22:13:12 +1100
commitc395465da68bfc3a238d5bc15f862e33e6e9ecec (patch)
tree0d337e9be2ae4a34b8ccd9314c5265499746ff33 /arch/powerpc/mm/slb.c
parentpowerpc: Add missing calls to va_end() (diff)
downloadlinux-dev-c395465da68bfc3a238d5bc15f862e33e6e9ecec.tar.xz
linux-dev-c395465da68bfc3a238d5bc15f862e33e6e9ecec.zip
powerpc: Add function to copy mm_context_t to the paca
This adds a function to copy the mm->context to the paca. This is only a basic conversion for now but will be used more extensively in the next patch. This also adds #ifdef CONFIG_PPC_BOOK3S around this code since it's not used elsewhere. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/mm/slb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c
index 515730e499fe..825b6873391f 100644
--- a/arch/powerpc/mm/slb.c
+++ b/arch/powerpc/mm/slb.c
@@ -228,7 +228,7 @@ void switch_slb(struct task_struct *tsk, struct mm_struct *mm)
asm volatile("slbie %0" : : "r" (slbie_data));
get_paca()->slb_cache_ptr = 0;
- get_paca()->context = mm->context;
+ copy_mm_to_paca(&mm->context);
/*
* preload some userspace segments into the SLB.