summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mmu_context_nohash.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V2016-04-29 15:26:01 +0200
committerMichael Ellerman2016-05-01 10:33:04 +0200
commitd2adba3fd137b46903dad813e2a4777b96c85e0f (patch)
tree42f883e56fd897d308ec1e3620e5d4692425da8e /arch/powerpc/mm/mmu_context_nohash.c
parentpowerpc/mm/radix: Add radix callbacks for vmemmap and map_kernel page() (diff)
downloadkernel-qcow2-linux-d2adba3fd137b46903dad813e2a4777b96c85e0f.tar.gz
kernel-qcow2-linux-d2adba3fd137b46903dad813e2a4777b96c85e0f.tar.xz
kernel-qcow2-linux-d2adba3fd137b46903dad813e2a4777b96c85e0f.zip
powerpc/mm: Abstraction for switch_mmu_context()
How we switch MMU context differs between hash and radix. For hash we need to switch the SLB details and for radix we need to switch the PID SPR. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/mmu_context_nohash.c')
-rw-r--r--arch/powerpc/mm/mmu_context_nohash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mmu_context_nohash.c b/arch/powerpc/mm/mmu_context_nohash.c
index 986afbc22c76..a36c43a27893 100644
--- a/arch/powerpc/mm/mmu_context_nohash.c
+++ b/arch/powerpc/mm/mmu_context_nohash.c
@@ -226,7 +226,8 @@ static void context_check_map(void)
static void context_check_map(void) { }
#endif
-void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next)
+void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next,
+ struct task_struct *tsk)
{
unsigned int i, id, cpu = smp_processor_id();
unsigned long *map;