Loading arch/arm64/mm/init.c +7 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,7 @@ static void __init update_memory_limit(void) phys_addr_t end_addr, addr_aligned, offset; int len; const __be32 *prop; char *status; phys_addr_t min_ddr_sz = 0, offline_sz = 0; int t_len = (2 * dt_root_size_cells) * sizeof(__be32); Loading @@ -349,6 +350,12 @@ static void __init update_memory_limit(void) return; } status = (char *)fdt_getprop(initial_boot_params, node, "status", NULL); if (status && !strcmp(status, "disabled")) { pr_info("mem-offline device is disabled\n"); return; } prop = of_get_flat_dt_prop(node, "offline-sizes", &len); if (prop) { if (len % t_len != 0) { Loading Loading
arch/arm64/mm/init.c +7 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,7 @@ static void __init update_memory_limit(void) phys_addr_t end_addr, addr_aligned, offset; int len; const __be32 *prop; char *status; phys_addr_t min_ddr_sz = 0, offline_sz = 0; int t_len = (2 * dt_root_size_cells) * sizeof(__be32); Loading @@ -349,6 +350,12 @@ static void __init update_memory_limit(void) return; } status = (char *)fdt_getprop(initial_boot_params, node, "status", NULL); if (status && !strcmp(status, "disabled")) { pr_info("mem-offline device is disabled\n"); return; } prop = of_get_flat_dt_prop(node, "offline-sizes", &len); if (prop) { if (len % t_len != 0) { Loading