OSDN Git Service

powerpc/mm: Move pte_fragment_alloc() to a common location
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 29 Nov 2018 14:06:51 +0000 (14:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Dec 2018 08:45:01 +0000 (19:45 +1100)
commita95d133c8643cae40a35f82184640d312ba9f11f
tree309c980a1ab8a30278676edce2cd01ab64bb5634
parentddfc20a3b9ae23b09498a0a7c06a7049b251c158
powerpc/mm: Move pte_fragment_alloc() to a common location

In preparation of next patch which generalises the use of
pte_fragment_alloc() for all, this patch moves the related functions
in a place that is common to all subarches.

The 8xx will need that for supporting 16k pages, as in that mode
page tables still have a size of 4k.

Since pte_fragment with only once fragment is not different
from what is done in the general case, we can easily migrate all
subarchs to pte fragments.

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgalloc.h
arch/powerpc/mm/Makefile
arch/powerpc/mm/mmu_context_book3s64.c
arch/powerpc/mm/pgtable-book3s64.c
arch/powerpc/mm/pgtable-frag.c [new file with mode: 0644]