diff options
author | Alexander Graf <agraf@suse.de> | 2009-11-02 12:02:30 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-11-05 16:50:25 +1100 |
commit | e85a47106abb928e048d89d7fa48f982fcb018aa (patch) | |
tree | 22b19d0e8f06dfdb9186d8395ff75aa3bd430090 /arch/powerpc/include/asm/mmu_context.h | |
parent | 4ab79aa801b6b4f2e2fb508d6107cdd9320d682d (diff) | |
download | lwn-e85a47106abb928e048d89d7fa48f982fcb018aa.tar.gz lwn-e85a47106abb928e048d89d7fa48f982fcb018aa.zip |
Split init_new_context and destroy_context
For KVM we need to allocate a new context id, but don't really care about
all the mm context around it.
So let's split the alloc and destroy functions for the context id, so we can
grab one without allocating an mm context.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/mmu_context.h')
-rw-r--r-- | arch/powerpc/include/asm/mmu_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h index b34e94d94435..26383e0778aa 100644 --- a/arch/powerpc/include/asm/mmu_context.h +++ b/arch/powerpc/include/asm/mmu_context.h @@ -23,6 +23,8 @@ extern void switch_slb(struct task_struct *tsk, struct mm_struct *mm); extern void set_context(unsigned long id, pgd_t *pgd); #ifdef CONFIG_PPC_BOOK3S_64 +extern int __init_new_context(void); +extern void __destroy_context(int context_id); static inline void mmu_context_init(void) { } #else extern void mmu_context_init(void); |