Skip to content
Commit 77d37071 authored by Zhen Lei's avatar Zhen Lei Committed by Greg Kroah-Hartman
Browse files

of: fdt: Aggregate the processing of "linux,usable-memory-range"

[ Upstream commit 8347b417

 ]

Currently, we parse the "linux,usable-memory-range" property in
early_init_dt_scan_chosen(), to obtain the specified memory range of the
crash kernel. We then reserve the required memory after
early_init_dt_scan_memory() has identified all available physical memory.
Because the two pieces of code are separated far, the readability and
maintainability are reduced. So bring them together.

Suggested-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
(change the prototype of early_init_dt_check_for_usable_mem_range(), in
order to use it outside)
Signed-off-by: default avatarPingfan Liu <kernelfans@gmail.com>
Tested-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
Acked-by: default avatarJohn Donnelly <john.p.donnelly@oracle.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
To: devicetree@vger.kernel.org
To: linux-efi@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 073d9a22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment