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

bootstage: Record the time taken to set up driver model


Driver model is set up ones before relocation and once after. Record the
time taken in each case.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 5ac44a55
Branches
Tags
No related merge requests found
...@@ -732,7 +732,9 @@ static int initf_dm(void) ...@@ -732,7 +732,9 @@ static int initf_dm(void)
#if defined(CONFIG_DM) && defined(CONFIG_SYS_MALLOC_F_LEN) #if defined(CONFIG_DM) && defined(CONFIG_SYS_MALLOC_F_LEN)
int ret; int ret;
bootstage_start(BOOTSTATE_ID_ACCUM_DM_F, "dm_f");
ret = dm_init_and_scan(true); ret = dm_init_and_scan(true);
bootstage_accum(BOOTSTATE_ID_ACCUM_DM_F);
if (ret) if (ret)
return ret; return ret;
#endif #endif
......
...@@ -313,7 +313,9 @@ static int initr_dm(void) ...@@ -313,7 +313,9 @@ static int initr_dm(void)
#ifdef CONFIG_TIMER #ifdef CONFIG_TIMER
gd->timer = NULL; gd->timer = NULL;
#endif #endif
bootstage_start(BOOTSTATE_ID_ACCUM_DM_R, "dm_r");
ret = dm_init_and_scan(false); ret = dm_init_and_scan(false);
bootstage_accum(BOOTSTATE_ID_ACCUM_DM_R);
if (ret) if (ret)
return ret; return ret;
#ifdef CONFIG_TIMER_EARLY #ifdef CONFIG_TIMER_EARLY
......
...@@ -200,6 +200,8 @@ enum bootstage_id { ...@@ -200,6 +200,8 @@ enum bootstage_id {
BOOTSTAGE_ID_ACCUM_SPI, BOOTSTAGE_ID_ACCUM_SPI,
BOOTSTAGE_ID_ACCUM_DECOMP, BOOTSTAGE_ID_ACCUM_DECOMP,
BOOTSTAGE_ID_FPGA_INIT, BOOTSTAGE_ID_FPGA_INIT,
BOOTSTATE_ID_ACCUM_DM_F,
BOOTSTATE_ID_ACCUM_DM_R,
/* a few spare for the user, from here */ /* a few spare for the user, from here */
BOOTSTAGE_ID_USER, BOOTSTAGE_ID_USER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment