Thread (35 messages) 35 messages, 11 authors, 2020-08-02

Re: [PATCH 04/15] arm64: numa: simplify dummy_numa_init()

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-07-30 12:04:00
Also in: linux-arm-kernel, linux-iommu, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, lkml, sparclinux

On Tue, Jul 28, 2020 at 08:11:42AM +0300, Mike Rapoport wrote:
From: Mike Rapoport <redacted>

dummy_numa_init() loops over memblock.memory and passes nid=0 to
numa_add_memblk() which essentially wraps memblock_set_node(). However,
memblock_set_node() can cope with entire memory span itself, so the loop
over memblock.memory regions is redundant.

Replace the loop with a single call to memblock_set_node() to the entire
memory.

Signed-off-by: Mike Rapoport <redacted>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help