summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/efi-init.c
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-12-14 05:01:56 +0100
committerRob Herring <robh@kernel.org>2021-12-22 14:28:26 +0100
commit8347b41748c3019157312fbe7f8a6792ae396eb7 (patch)
tree90f9be930d7c82c2ed61c29e981def7f3a3a909d /drivers/firmware/efi/efi-init.c
parentRevert "kbuild: Enable DT schema checks for %.dtb targets" (diff)
downloadlinux-8347b41748c3019157312fbe7f8a6792ae396eb7.tar.xz
linux-8347b41748c3019157312fbe7f8a6792ae396eb7.zip
of: fdt: Aggregate the processing of "linux,usable-memory-range"
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: Rob Herring <robh@kernel.org> Signed-off-by: Zhen 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: Pingfan Liu <kernelfans@gmail.com> Tested-by: Dave Kleikamp <dave.kleikamp@oracle.com> Acked-by: John Donnelly <john.p.donnelly@oracle.com> Reviewed-by: Rob 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: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/efi-init.c')
0 files changed, 0 insertions, 0 deletions