Re: [PATCH v4] arm64: use generic free_initrd_mem()
From: Mike Rapoport <rppt@kernel.org>
Date: 2019-10-15 07:39:49
Also in:
lkml
On October 15, 2019 2:46:59 AM GMT+02:00, Will Deacon [off-list ref] wrote:
On Sat, Sep 28, 2019 at 11:02:26AM +0300, Mike Rapoport wrote:quoted
From: Mike Rapoport <redacted> arm64 calls memblock_free() for the initrd area in its implementationofquoted
free_initrd_mem(), but this call has no actual effect that late inthe bootquoted
process. By the time initrd is freed, all the reserved memory ismanaged byquoted
the page allocator and the memblock.reserved is unused, so the onlypurposequoted
of the memblock_free() call is to keep track of initrd memory fordebuggingquoted
and accounting. Without the memblock_free() call the only difference between arm64and thequoted
generic versions of free_initrd_mem() is the memory poisoning. Move memblock_free() call to the generic code, enable it there for the architectures that define ARCH_KEEP_MEMBLOCK and use thegenericquoted
implementation of free_initrd_mem() on arm64. Signed-off-by: Mike Rapoport <redacted> --- v4: * memblock_free() aligned area around the initrdLooks straightforward to me: Acked-by: Will Deacon <will@kernel.org>
Can it go via arm64 tree?
Will
-- Sincerely yours, Mike _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel