Split init_new_context and destroy_context
authorAlexander Graf <agraf@suse.de>
Mon, 2 Nov 2009 12:02:30 +0000 (12:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Nov 2009 05:50:25 +0000 (16:50 +1100)
commite85a47106abb928e048d89d7fa48f982fcb018aa
tree22b19d0e8f06dfdb9186d8395ff75aa3bd430090
parent4ab79aa801b6b4f2e2fb508d6107cdd9320d682d
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>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/mm/mmu_context_hash64.c