summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slice.c
diff options
context:
space:
mode:
authorMichael Neuling2015-10-28 05:54:06 +0100
committerMichael Ellerman2015-12-19 12:13:12 +0100
commitc395465da68bfc3a238d5bc15f862e33e6e9ecec (patch)
tree0d337e9be2ae4a34b8ccd9314c5265499746ff33 /arch/powerpc/mm/slice.c
parentpowerpc: Add missing calls to va_end() (diff)
downloadkernel-qcow2-linux-c395465da68bfc3a238d5bc15f862e33e6e9ecec.tar.gz
kernel-qcow2-linux-c395465da68bfc3a238d5bc15f862e33e6e9ecec.tar.xz
kernel-qcow2-linux-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 'arch/powerpc/mm/slice.c')
-rw-r--r--arch/powerpc/mm/slice.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
index 0f432a702870..42954f0b47ac 100644
--- a/arch/powerpc/mm/slice.c
+++ b/arch/powerpc/mm/slice.c
@@ -185,8 +185,7 @@ static void slice_flush_segments(void *parm)
if (mm != current->active_mm)
return;
- /* update the paca copy of the context struct */
- get_paca()->context = current->active_mm->context;
+ copy_mm_to_paca(&current->active_mm->context);
local_irq_save(flags);
slb_flush_and_rebolt();