Commit 8347b41
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>1 parent 75e8953 commit 8347b41
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
969 | | - | |
| 968 | + | |
970 | 969 | | |
971 | 970 | | |
972 | 971 | | |
973 | 972 | | |
974 | | - | |
975 | 973 | | |
976 | | - | |
| 974 | + | |
977 | 975 | | |
978 | 976 | | |
979 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
980 | 984 | | |
981 | 985 | | |
982 | 986 | | |
| |||
989 | 993 | | |
990 | 994 | | |
991 | 995 | | |
| 996 | + | |
| 997 | + | |
992 | 998 | | |
993 | 999 | | |
994 | 1000 | | |
| |||
1137 | 1143 | | |
1138 | 1144 | | |
1139 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1140 | 1148 | | |
1141 | 1149 | | |
1142 | | - | |
1143 | 1150 | | |
1144 | 1151 | | |
1145 | 1152 | | |
| |||
1275 | 1282 | | |
1276 | 1283 | | |
1277 | 1284 | | |
1278 | | - | |
| 1285 | + | |
1279 | 1286 | | |
1280 | 1287 | | |
1281 | 1288 | | |
| |||
0 commit comments