platform_kernel-5.15/arch/microblaze
Mike Rapoport 22e7878102 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>
2021-09-03 09:58:15 -07:00
..
boot xsysace: Remove SYSACE driver 2021-03-23 10:27:38 -06:00
configs microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
include microblaze: simplify pte_alloc_one_kernel() 2021-09-03 09:58:15 -07:00
kernel \n 2021-07-01 12:06:39 -07:00
lib microblaze: add 'fallthrough' to memcpy/memset/memmove 2021-04-22 09:34:05 +02:00
mm microblaze: simplify pte_alloc_one_kernel() 2021-09-03 09:58:15 -07:00
pci microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
Kbuild kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild 2021-05-26 23:10:37 +09:00
Kconfig mm: generalize ZONE_[DMA|DMA32] 2021-06-30 20:47:30 -07:00
Kconfig.debug docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
Kconfig.platform docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
Makefile arch: microblaze: Fix spelling mistake "vesion" -> "version" 2021-06-02 09:50:36 +02:00