[PATCH 08/17] x86/numa_emu: simplify allocation of phys_dist

Jonathan Cameron Jonathan.Cameron at Huawei.com
Sat Jul 20 02:38:49 AEST 2024


On Tue, 16 Jul 2024 14:13:37 +0300
Mike Rapoport <rppt at kernel.org> wrote:

> From: "Mike Rapoport (Microsoft)" <rppt at kernel.org>
> 
> By the time numa_emulation() is called, all physical memory is already
> mapped in the direct map and there is no need to define limits for
> memblock allocation.
> 
> Replace memblock_phys_alloc_range() with memblock_alloc().
> 
> Signed-off-by: Mike Rapoport (Microsoft) <rppt at kernel.org>
Indeed seems to be after mapping physical memory, so this looks fine.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>


More information about the Linuxppc-dev mailing list