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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user