]> git.sur5r.net Git - u-boot/commitdiff
bootstage: Record time taken to set up the live device tree
authorSimon Glass <sjg@chromium.org>
Mon, 22 May 2017 11:05:36 +0000 (05:05 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:09 +0000 (14:13 -0400)
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>
common/board_r.c
include/bootstage.h

index ef909989328affa48160d9405d11b96dc5154286..15977e4bcaef417b21a60c61a196e4bbfa13793a 100644 (file)
@@ -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
 
index c972027ffc624cd3748b2429b25b660a068bbebd..c5d93f57fd7f45d75d6a5db67a0d2db364f1eefa 100644 (file)
@@ -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,