OSDN Git Service

powerpc/32s: move CTX_TO_VSID() into mmu-hash.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 3 Jun 2021 08:41:38 +0000 (08:41 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:08 +0000 (00:09 +1000)
commit7235bb3593781ed022d0714a73c2c0d8eb8a835f
tree73e0a356232dd321befd6264fa748321f7ba3287
parent91bb30822a2e1d7900f9f42e9e92647a9015f979
powerpc/32s: move CTX_TO_VSID() into mmu-hash.h

In order to reuse it in switch_mmu_context(), this
patch moves CTX_TO_VSID() macro into asm/book3s/32/mmu-hash.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/26b36ef2939234a04b37baf6ffe50cba81f5d1b7.1622708530.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/32/mmu-hash.h
arch/powerpc/kvm/book3s_32_mmu_host.c
arch/powerpc/mm/book3s32/mmu_context.c