aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-03-29 22:00:46 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-03-31 23:09:57 +1100
commita336f2f5b05c3c02876a365b8f17b3d10920dbd5 (patch)
tree3988ca0b64a437539be9619805bb3dfb852ec62f /arch/powerpc/include/asm/mmu_context.h
parentpowerpc/mm/slice: Update slice mask printing to use bitmap printing. (diff)
downloadlinux-dev-a336f2f5b05c3c02876a365b8f17b3d10920dbd5.tar.xz
linux-dev-a336f2f5b05c3c02876a365b8f17b3d10920dbd5.zip
powerpc/mm/hash: Abstract context id allocation for KVM
KVM wants to be able to allocate an MMU context id, which it does currently by calling __init_new_context(). We're about to rework that code, so provide a wrapper for KVM so it can not worry about the details. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/mmu_context.h')
-rw-r--r--arch/powerpc/include/asm/mmu_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h
index b9e3f0aca261..7d721101ec78 100644
--- a/arch/powerpc/include/asm/mmu_context.h
+++ b/arch/powerpc/include/asm/mmu_context.h
@@ -51,7 +51,7 @@ static inline void switch_mmu_context(struct mm_struct *prev,
return switch_slb(tsk, next);
}
-extern int __init_new_context(void);
+extern int hash__alloc_context_id(void);
extern void __destroy_context(int context_id);
static inline void mmu_context_init(void) { }
#else