]> www.infradead.org Git - users/jedix/linux-maple.git/commit
microblaze: simplify pte_alloc_one_kernel()
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 23 Aug 2021 23:59:26 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:05 +0000 (09:34 +1000)
commit28c6e7e5a91e3809052c7b41aa2b9e128da2d714
tree5a6fc519ea656a29f43b1322a8ab06d1c60ddd5a
parent551ed2e6f5d05691db7ee6a759e5b2d04c6a2938
microblaze: simplify pte_alloc_one_kernel()

The microblaze's implementation of pte_alloc_one_kernel() used
memblock_alloc_try_nid_raw() along with clear_page() to allocated a zeroed
page during early setup.

Replace calls of these functions with a call to memblock_alloc_try_nid()
that already returns zeroed page and respects the same allocation limits
as memblock_alloc_try_nid_raw().

While on it drop early_get_page() wrapper that was only used in
pte_alloc_one_kernel().

Link: https://lkml.kernel.org/r/20210714123739.16493-3-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/microblaze/include/asm/pgtable.h
arch/microblaze/mm/init.c
arch/microblaze/mm/pgtable.c