powerpc/mm: add helpers to get/set mm.context->pte_frag
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 29 Nov 2018 14:06:59 +0000 (14:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Dec 2018 08:45:01 +0000 (19:45 +1100)
commita74791dd98332435550bdc57761969ba72b74769
tree9e3f267a16e0c2eaae77262098159f58d1d41c3c
parentd09780f3a8d48fd49136d7bae8f0ae30de7f261a
powerpc/mm: add helpers to get/set mm.context->pte_frag

In order to handle pte_fragment functions with single fragment
without adding pte_frag in all mm_context_t, this patch creates
two helpers which do nothing on platforms using a single fragment.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pgtable.h
arch/powerpc/mm/pgtable-frag.c