Skip to content
Snippets Groups Projects
Commit a132f770 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

bootstage: Record time taken to set up the live device tree


This time is interesting as a comparision with the flat device tree time.
Add it to the record.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 824bb1b4
No related branches found
No related tags found
No related merge requests found
...@@ -297,8 +297,15 @@ static int initr_noncached(void) ...@@ -297,8 +297,15 @@ static int initr_noncached(void)
#ifdef CONFIG_OF_LIVE #ifdef CONFIG_OF_LIVE
static int initr_of_live(void) static int initr_of_live(void)
{ {
return of_live_build(gd->fdt_blob, int ret;
(struct device_node **)&gd->of_root);
bootstage_start(BOOTSTAGE_ID_ACCUM_OF_LIVE, "of_live");
ret = of_live_build(gd->fdt_blob, (struct device_node **)&gd->of_root);
bootstage_accum(BOOTSTAGE_ID_ACCUM_OF_LIVE);
if (ret)
return ret;
return 0;
} }
#endif #endif
......
...@@ -200,6 +200,7 @@ enum bootstage_id { ...@@ -200,6 +200,7 @@ enum bootstage_id {
BOOTSTAGE_ID_ACCUM_SCSI, BOOTSTAGE_ID_ACCUM_SCSI,
BOOTSTAGE_ID_ACCUM_SPI, BOOTSTAGE_ID_ACCUM_SPI,
BOOTSTAGE_ID_ACCUM_DECOMP, BOOTSTAGE_ID_ACCUM_DECOMP,
BOOTSTAGE_ID_ACCUM_OF_LIVE,
BOOTSTAGE_ID_FPGA_INIT, BOOTSTAGE_ID_FPGA_INIT,
BOOTSTATE_ID_ACCUM_DM_SPL, BOOTSTATE_ID_ACCUM_DM_SPL,
BOOTSTATE_ID_ACCUM_DM_F, BOOTSTATE_ID_ACCUM_DM_F,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment