Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Zhen Lei <[email protected]> (change the prototype of early_init_dt_check_for_usable_mem_range(), in order to use it outside) Signed-off-by: Pingfan Liu <[email protected]> Tested-by: Dave Kleikamp <[email protected]> Acked-by: John Donnelly <[email protected]> Reviewed-by: Rob Herring <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] To: [email protected] To: [email protected] Signed-off-by: Rob Herring <[email protected]>
- Loading branch information