From: Simon Glass Date: Mon, 22 May 2017 05:05:36 -0600 Subject: [U-Boot] [PATCH 15/15] bootstage: Record time taken to set up the live device tree In-Reply-To: <20170522110536.6231-1-sjg@chromium.org> References: <20170522110536.6231-1-sjg@chromium.org> Message-ID: <20170522110536.6231-16-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This time is interesting as a comparision with the flat device tree time. Add it to the record. Signed-off-by: Simon Glass --- common/board_r.c | 11 +++++++++-- include/bootstage.h | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 2d717e8423..5986cd7674 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -298,8 +298,15 @@ static int initr_noncached(void) #ifdef CONFIG_OF_LIVE static int initr_of_live(void) { - return of_live_build(gd->fdt_blob, - (struct device_node **)&gd->of_root); + int ret; + + 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 diff --git a/include/bootstage.h b/include/bootstage.h index c972027ffc..c5d93f57fd 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -200,6 +200,7 @@ enum bootstage_id { BOOTSTAGE_ID_ACCUM_SCSI, BOOTSTAGE_ID_ACCUM_SPI, BOOTSTAGE_ID_ACCUM_DECOMP, + BOOTSTAGE_ID_ACCUM_OF_LIVE, BOOTSTAGE_ID_FPGA_INIT, BOOTSTATE_ID_ACCUM_DM_SPL, BOOTSTATE_ID_ACCUM_DM_F, -- 2.13.0.303.g4ebf302169-goog