summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 11:05:36 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:09 (GMT)
commita132f7708898d4e9027d78d7fc1fd15cf37aec8b (patch)
treefc6dfaa809596923b180f5fe622243aa79cba6e1 /common
parent824bb1b45371efcb10561456e894d7c2fa1a4b88 (diff)
downloadu-boot-a132f7708898d4e9027d78d7fc1fd15cf37aec8b.tar.xz
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index ef90998..15977e4 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -297,8 +297,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