]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: simplify pte_alloc_one_kernel()
authorMike Rapoport <rppt@linux.ibm.com>
Thu, 2 Sep 2021 21:57:59 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:15 +0000 (09:58 -0700)
commit2df8ec9e66aa54becb9023019505098fbef7a244
tree305afa2dcea1ebc5ab5a0a0b6c32d04f5e016081
parent8a67aca9607216a8ab8fb3c1ec39f236fe11ea3f
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>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/microblaze/include/asm/pgtable.h
arch/microblaze/mm/init.c
arch/microblaze/mm/pgtable.c