Skip to content

Commit a7d0431

Browse files
Gavin Shanozbenh
authored andcommitted
powerpc/prom: Stop scanning dev-tree for fdump early
Function early_init_dt_scan_fw_dump() is called to scan the device tree for fdump properties under node "rtas". Any one of them is invalid, we can stop scanning the device tree early by returning "1". It would save a bit time during boot. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent e9bc03f commit a7d0431

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/powerpc/kernel/fadump.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int __init early_init_dt_scan_fw_dump(unsigned long node,
6969
*/
7070
token = of_get_flat_dt_prop(node, "ibm,configure-kernel-dump", NULL);
7171
if (!token)
72-
return 0;
72+
return 1;
7373

7474
fw_dump.fadump_supported = 1;
7575
fw_dump.ibm_configure_kernel_dump = *token;
@@ -92,7 +92,7 @@ int __init early_init_dt_scan_fw_dump(unsigned long node,
9292
&size);
9393

9494
if (!sections)
95-
return 0;
95+
return 1;
9696

9797
num_sections = size / (3 * sizeof(u32));
9898

@@ -110,6 +110,7 @@ int __init early_init_dt_scan_fw_dump(unsigned long node,
110110
break;
111111
}
112112
}
113+
113114
return 1;
114115
}
115116

0 commit comments

Comments
 (0)