mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -732,7 +732,9 @@ static int initf_dm(void)
|
||||
#if defined(CONFIG_DM) && defined(CONFIG_SYS_MALLOC_F_LEN)
|
||||
int ret;
|
||||
|
||||
bootstage_start(BOOTSTATE_ID_ACCUM_DM_F, "dm_f");
|
||||
ret = dm_init_and_scan(true);
|
||||
bootstage_accum(BOOTSTATE_ID_ACCUM_DM_F);
|
||||
if (ret)
|
||||
return ret;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user