diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-22 05:05:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-05 14:13:07 -0400 |
commit | 63c5bf48d5e09317aa3444d2bd51f67d50adb715 (patch) | |
tree | 49506daf1ae54df058463cd8a1cc1825215377e0 /common/board_r.c | |
parent | 5ac44a55437b2b8e86248ed886e86df9d55a514e (diff) | |
download | u-boot-midas-63c5bf48d5e09317aa3444d2bd51f67d50adb715.tar.gz u-boot-midas-63c5bf48d5e09317aa3444d2bd51f67d50adb715.tar.bz2 u-boot-midas-63c5bf48d5e09317aa3444d2bd51f67d50adb715.zip |
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index bde98773d0..ef90998932 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -313,7 +313,9 @@ static int initr_dm(void) #ifdef CONFIG_TIMER gd->timer = NULL; #endif + bootstage_start(BOOTSTATE_ID_ACCUM_DM_R, "dm_r"); ret = dm_init_and_scan(false); + bootstage_accum(BOOTSTATE_ID_ACCUM_DM_R); if (ret) return ret; #ifdef CONFIG_TIMER_EARLY |