Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gavin Shan and committed by
Benjamin Herrenschmidt
a7d04317 e9bc03fe

+3 -2
+3 -2
arch/powerpc/kernel/fadump.c
··· 69 69 */ 70 70 token = of_get_flat_dt_prop(node, "ibm,configure-kernel-dump", NULL); 71 71 if (!token) 72 - return 0; 72 + return 1; 73 73 74 74 fw_dump.fadump_supported = 1; 75 75 fw_dump.ibm_configure_kernel_dump = *token; ··· 92 92 &size); 93 93 94 94 if (!sections) 95 - return 0; 95 + return 1; 96 96 97 97 num_sections = size / (3 * sizeof(u32)); 98 98 ··· 110 110 break; 111 111 } 112 112 } 113 + 113 114 return 1; 114 115 } 115 116