powerpc: Pull out ksp_vsid logic into a helper
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jul 2014 02:29:21 +0000 (12:29 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2014 04:10:24 +0000 (14:10 +1000)
commitcec15488c7e165a10f4c61cfba91c779e6afd19d
tree2b5d74e2d07357b16446bcd4880b2e18a26a0b38
parent13b3d13b813ab834fac67dc05f8b86dbcc29c134
powerpc: Pull out ksp_vsid logic into a helper

The previous patch left a bit of a wart in copy_process(). Clean it up a
bit by moving the logic out into a helper.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/process.c